aboutsummaryrefslogtreecommitdiff
path: root/lib/libthr/thread
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2012-08-12 00:56:56 +0000
committerDavid Xu <davidxu@FreeBSD.org>2012-08-12 00:56:56 +0000
commitaa75bc577af823de6364807a6842e697b2722631 (patch)
tree98597f2dc10782904b8ad411b6f0fab43d50c68b /lib/libthr/thread
parent1762ec944aad232959c2c7801cb1680d5b3155e0 (diff)
Notes
Diffstat (limited to 'lib/libthr/thread')
-rw-r--r--lib/libthr/thread/thr_cond.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_cond.c b/lib/libthr/thread/thr_cond.c
index 541e40af97d9..6af15db5c508 100644
--- a/lib/libthr/thread/thr_cond.c
+++ b/lib/libthr/thread/thr_cond.c
@@ -239,6 +239,7 @@ cond_wait_user(struct pthread_cond *cvp, struct pthread_mutex *mp,
_thr_clear_wake(curthread);
_sleepq_unlock(cvp);
if (defered) {
+ defered = 0;
if ((mp->m_lock.m_owner & UMUTEX_CONTESTED) == 0)
(void)_umtx_op_err(&mp->m_lock, UMTX_OP_MUTEX_WAKE2,
mp->m_lock.m_flags, 0, 0);