Skip to content
Snippets Groups Projects
Commit 903beb43 authored by bunnei's avatar bunnei
Browse files

mutex: Update hasWaiters on release.

parent 19632229
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,7 @@ ResultCode Mutex::Release(Thread* thread) {
holding_thread->held_mutexes.erase(this);
holding_thread->UpdatePriority();
SetHoldingThread(nullptr);
SetHasWaiters(!GetWaitingThreads().empty());
WakeupAllWaitingThreads();
Core::System::GetInstance().PrepareReschedule();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment