Browse Source

mutex: Update hasWaiters on release.

nce_cpp
bunnei 8 years ago
parent
commit
41042e7b81
  1. 1
      src/core/hle/kernel/mutex.cpp

1
src/core/hle/kernel/mutex.cpp

@ -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…
Cancel
Save