From dd391ea7729c2d48ce7abbd65c2eb01b0b9c428c Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 20:52:16 -0400 Subject: mutex_trylock(): Make "static" --- 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 # . -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 -- cgit v0.9.1