mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-13 22:17:59 -05:00
kernel: Fix svcWaitSynch to always acquire requested wait objects.
This commit is contained in:
@ -48,13 +48,7 @@ ResultVal<s32> Semaphore::Release(s32 release_count) {
|
||||
s32 previous_count = available_count;
|
||||
available_count += release_count;
|
||||
|
||||
// Notify some of the threads that the semaphore has been released
|
||||
// stop once the semaphore is full again or there are no more waiting threads
|
||||
while (!ShouldWait() && WakeupNextThread() != nullptr) {
|
||||
Acquire();
|
||||
}
|
||||
|
||||
HLE::Reschedule(__func__);
|
||||
WakeupAllWaitingThreads();
|
||||
|
||||
return MakeResult<s32>(previous_count);
|
||||
}
|
||||
|
Reference in New Issue
Block a user