summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_mutex.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2006-09-08 09:29:14 +0000
committerDavid Xu <davidxu@FreeBSD.org>2006-09-08 09:29:14 +0000
commitddaf6689e3a562fb7354adc1adc8aa1267c07013 (patch)
treec33e68bda4817da09f3b64d186148383a88f3e42 /lib/libthr/thread/thr_mutex.c
parent6a146a198910e054211c80ecf8cc916d6b63ba05 (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_mutex.c')
-rw-r--r--lib/libthr/thread/thr_mutex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c
index af8d715d44c6..6861c9fe353e 100644
--- a/lib/libthr/thread/thr_mutex.c
+++ b/lib/libthr/thread/thr_mutex.c
@@ -355,8 +355,7 @@ mutex_lock_common(struct pthread *curthread, pthread_mutex_t *mutex,
ret = mutex_self_lock(m, abstime);
} else {
if (abstime == NULL) {
- _thr_umutex_lock(&m->m_lock, id);
- ret = 0;
+ ret = _thr_umutex_lock(&m->m_lock, id);
} else if (__predict_false(
abstime->tv_sec < 0 || abstime->tv_nsec < 0 ||
abstime->tv_nsec >= 1000000000)) {