socsvn commit: r239352 - in soc2012/gmiller/locking-head: . lib/libthr/thread

gmiller at FreeBSD.org gmiller at FreeBSD.org
Fri Jul 13 19:29:28 UTC 2012


Author: gmiller
Date: Fri Jul 13 19:29:25 2012
New Revision: 239352
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=239352

Log:
   r239325 at FreeBSD-dev:  root | 2012-07-13 13:47:28 -0500
   Correct the logic for detecting the last unlock call for a recursive mutex.

Modified:
  soc2012/gmiller/locking-head/   (props changed)
  soc2012/gmiller/locking-head/lib/libthr/thread/thr_mutex.c

Modified: soc2012/gmiller/locking-head/lib/libthr/thread/thr_mutex.c
==============================================================================
--- soc2012/gmiller/locking-head/lib/libthr/thread/thr_mutex.c	Fri Jul 13 18:07:11 2012	(r239351)
+++ soc2012/gmiller/locking-head/lib/libthr/thread/thr_mutex.c	Fri Jul 13 19:29:25 2012	(r239352)
@@ -769,10 +769,6 @@
 		PMUTEX_TYPE(m->m_flags) == PTHREAD_MUTEX_RECURSIVE &&
 		m->m_count > 0)) {
 		m->m_count--;
-
-		if (m->m_count == 0) {
-			LOCK_PROFILE_RELEASE(m);
-		}
 	} else {
 		LOCK_PROFILE_RELEASE(m);
 


More information about the svn-soc-all mailing list