mutex: Update hasWaiters on release.

master
bunnei 2018-02-05 21:54:10 +07:00
parent 1963222933
commit 903beb43a8
1 changed files with 1 additions and 0 deletions

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