mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-25 16:13:17 +00:00
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:
parent
6662c0c12e
commit
24dc93d4c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118206
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user