summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_mutex.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2005-12-21 05:14:07 +0000
committerDavid Xu <davidxu@FreeBSD.org>2005-12-21 05:14:07 +0000
commite6262545cf521229bc1f55641fdeeb9aa38c5186 (patch)
tree5cc7d29238709e41b2718182f44cdc2b3051f19f /lib/libthr/thread/thr_mutex.c
parent8429e73473f8c4e320658ad183ef79002653f9c2 (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_mutex.c')
-rw-r--r--lib/libthr/thread/thr_mutex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c
index 9dbb01d00efa..619cf3c96696 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);
}