]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
tweak comment about lmgr_mutex_is_locked()
authorAlain Spineux <alain@baculasystems.com>
Wed, 1 Sep 2021 13:36:50 +0000 (15:36 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:03 +0000 (09:03 +0100)
bacula/src/lib/lockmgr.c

index dca839841a2ac3e4e837019633f87542d8679675..4323e52263a29f946083ece7b53839a286a2f589 100644 (file)
@@ -1105,9 +1105,8 @@ int bthread_cond_timedwait_p(pthread_cond_t *cond,
 
 /*  Test if this mutex is locked by the current thread
  *  returns:
- *     0 - unlocked
- *     1 - locked by the current thread
- *     2 - locked by an other thread
+ *     0 - the mutex is not locked by the current thread, and maybe not locked at all
+ *     1 - the mutex is locked by the current thread
  */
 int lmgr_mutex_is_locked(void *m)
 {