summaryrefslogtreecommitdiffstats
path: root/src/mutex.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/mutex.sh')
-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