svn commit: r239206 - head/lib/libthr/thread

David Xu davidxu at FreeBSD.org
Sun Aug 12 00:56:56 UTC 2012


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);


More information about the svn-src-all mailing list