summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 20:52:16 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 20:52:16 (EDT)
commitdd391ea7729c2d48ce7abbd65c2eb01b0b9c428c (patch)
tree53e7ba86faa9fcdf9637d5fefab73b544226fad4 /src
parent8b7ebc1dbe8d2cc5a124e1d81cb0bb13f3f410dc (diff)
mutex_trylock(): Make "static"
Diffstat (limited to 'src')
-rw-r--r--src/mutex.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mutex.sh b/src/mutex.sh
index 60ab07d..4aa8e1f 100644
--- a/src/mutex.sh
+++ b/src/mutex.sh
@@ -18,7 +18,7 @@
# along with the ProteanOS Development Kit. If not, see
# <http://www.gnu.org/licenses/>.
-mutex_trylock()
+_mutex_trylock()
{
local mutex="${1}"
@@ -32,7 +32,7 @@ mutex_timedlock()
local mutex="${1}"
local timeout="${2}"
- while ! mutex_trylock "${mutex}"; do
+ while ! _mutex_trylock "${mutex}"; do
[ ${timeout} -eq 0 ] && return 1
timeout=$((${timeout} - 1))
sleep 1