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
@ -1008,6 +1008,7 @@ mutex_unlock_common(pthread_mutex_t *m, int add_reference)
|
|||||||
* This thread now owns one less priority mutex.
|
* This thread now owns one less priority mutex.
|
||||||
*/
|
*/
|
||||||
curthread->priority_mutex_count--;
|
curthread->priority_mutex_count--;
|
||||||
|
THR_SCHED_UNLOCK(curthread, curthread);
|
||||||
|
|
||||||
/* Remove the mutex from the threads queue. */
|
/* Remove the mutex from the threads queue. */
|
||||||
MUTEX_ASSERT_IS_OWNED(*m);
|
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.
|
* This thread now owns one less priority mutex.
|
||||||
*/
|
*/
|
||||||
curthread->priority_mutex_count--;
|
curthread->priority_mutex_count--;
|
||||||
|
THR_SCHED_UNLOCK(curthread, curthread);
|
||||||
|
|
||||||
/* Remove the mutex from the threads queue. */
|
/* Remove the mutex from the threads queue. */
|
||||||
MUTEX_ASSERT_IS_OWNED(*m);
|
MUTEX_ASSERT_IS_OWNED(*m);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user