mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-10 12:47:58 -05:00
mutex: Update hasWaiters on release.
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user