mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 21:35:46 +00:00
mutex: Update hasWaiters on release.
This commit is contained in:
parent
6499c8eed6
commit
41042e7b81
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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue