From 2d34e45c9457ab994478f8ae01145be45ba695d9 Mon Sep 17 00:00:00 2001 From: davidxu Date: Wed, 21 Dec 2005 05:14:07 +0000 Subject: Let _mutex_cv_lock call internal functiona mutex_lock_common. --- lib/libthr/thread/thr_mutex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libthr/thread/thr_mutex.c') 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); } -- cgit v1.1