diff options
Diffstat (limited to 'lib/libthr/thread/thr_mutex.c')
-rw-r--r-- | lib/libthr/thread/thr_mutex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c index 9dbb01d..619cf3c 100644 --- a/lib/libthr/thread/thr_mutex.c +++ b/lib/libthr/thread/thr_mutex.c @@ -854,7 +854,8 @@ _mutex_cv_lock(pthread_mutex_t *m) { int ret; - if ((ret = _pthread_mutex_lock(m)) == 0) + ret = mutex_lock_common(_get_curthread(), m, NULL); + if (ret == 0) (*m)->m_refcount--; return (ret); } |