Author: davidxu
Date: Sun Aug 12 00:56:56 2012
New Revision: 239206
URL: http://svn.freebsd.org/changeset/base/239206

Log:
  Do defered mutex wakeup once.

Modified:
  head/lib/libthr/thread/thr_cond.c

Modified: head/lib/libthr/thread/thr_cond.c
==============================================================================
--- head/lib/libthr/thread/thr_cond.c   Sun Aug 12 00:46:15 2012        
(r239205)
+++ head/lib/libthr/thread/thr_cond.c   Sun Aug 12 00:56:56 2012        
(r239206)
@@ -239,6 +239,7 @@ cond_wait_user(struct pthread_cond *cvp,
                _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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to