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
This commit is contained in:
Daniel Eischen 2003-07-30 13:28:05 +00:00
parent 6662c0c12e
commit 24dc93d4c2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118206
2 changed files with 2 additions and 0 deletions

View File

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

View File

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