Pārlūkot izejas kodu

mutex: Update hasWaiters on release.

bunnei 8 gadi atpakaļ
vecāks
revīzija
903beb43a8
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/core/hle/kernel/mutex.cpp

+ 1 - 0
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();