summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2003-07-30 13:28:05 +0000
committerdeischen <deischen@FreeBSD.org>2003-07-30 13:28:05 +0000
commit1c6cde237e0eb1878d5d2b1172398a2054b288f8 (patch)
tree21d8bd7c1dd6a2ebc9b5b7fbee0d78cca7852255 /lib/libpthread
parent538c4f0ff51149d53156f9f99eb58bcd4a7bb1d5 (diff)
downloadFreeBSD-src-1c6cde237e0eb1878d5d2b1172398a2054b288f8.zip
FreeBSD-src-1c6cde237e0eb1878d5d2b1172398a2054b288f8.tar.gz
Don't forget to unlock the scheduler lock. Somehow this got removed
from one of my last commits. This only affected priority ceiling mutexes. Pointy hat to: deischen
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/thread/thr_mutex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_mutex.c b/lib/libpthread/thread/thr_mutex.c
index 7e8de44..00da0f0 100644
--- a/lib/libpthread/thread/thr_mutex.c
+++ b/lib/libpthread/thread/thr_mutex.c
@@ -1008,6 +1008,7 @@ mutex_unlock_common(pthread_mutex_t *m, int add_reference)
* This thread now owns one less priority mutex.
*/
curthread->priority_mutex_count--;
+ THR_SCHED_UNLOCK(curthread, curthread);
/* Remove the mutex from the threads queue. */
MUTEX_ASSERT_IS_OWNED(*m);
OpenPOWER on IntegriCloud