diff options
author | David Xu <davidxu@FreeBSD.org> | 2011-01-04 05:35:19 +0000 |
---|---|---|
committer | David Xu <davidxu@FreeBSD.org> | 2011-01-04 05:35:19 +0000 |
commit | 1f6f22dfec9f70b1282e949d969a741a973babff (patch) | |
tree | 59e8f6fb300f61c29194db2aa671df13b6a1470a | |
parent | 0737626a7fe7645700342d9b601a7d8b30892a0d (diff) |
Notes
-rw-r--r-- | lib/libthr/thread/thr_cond.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/libthr/thread/thr_cond.c b/lib/libthr/thread/thr_cond.c index 6ec6d4c6da0be..a834711b216bd 100644 --- a/lib/libthr/thread/thr_cond.c +++ b/lib/libthr/thread/thr_cond.c @@ -246,11 +246,6 @@ cond_wait_user(struct pthread_cond *cvp, struct pthread_mutex *mp, error = _thr_sleep(curthread, cvp->__clock_id, abstime); } - if (curthread->wchan == NULL) { - error = 0; - goto out; - } - _sleepq_lock(cvp); if (curthread->wchan == NULL) { error = 0; @@ -274,7 +269,6 @@ cond_wait_user(struct pthread_cond *cvp, struct pthread_mutex *mp, } } _sleepq_unlock(cvp); -out: curthread->mutex_obj = NULL; _mutex_cv_lock(mp, recurse); return (error); |