Date: Fri, 13 Jul 2012 19:29:25 +0000 From: gmiller@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r239352 - in soc2012/gmiller/locking-head: . lib/libthr/thread Message-ID: <20120713192925.DF05A106566B@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120713192925.DF05A106566B>