diff options
author | davidxu <davidxu@FreeBSD.org> | 2005-12-21 05:14:07 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2005-12-21 05:14:07 +0000 |
commit | 2d34e45c9457ab994478f8ae01145be45ba695d9 (patch) | |
tree | 5cc7d29238709e41b2718182f44cdc2b3051f19f /lib | |
parent | 5ac55e9c46dd4537eb0fb8e97d111abb52caf51d (diff) | |
download | FreeBSD-src-2d34e45c9457ab994478f8ae01145be45ba695d9.zip FreeBSD-src-2d34e45c9457ab994478f8ae01145be45ba695d9.tar.gz |
Let _mutex_cv_lock call internal functiona mutex_lock_common.
Diffstat (limited to 'lib')
-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); } |