diff options
author | bunnei <bunneidev@gmail.com> | 2015-06-08 05:39:37 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-06-17 04:34:39 +0200 |
commit | 71e8822d23c030311858e6fcc8480b9c52f13f39 (patch) | |
tree | 0a5f53cbcebc2c98c7c9c224cbc1a91c1b783366 /src/core/hle/kernel/semaphore.cpp | |
parent | Merge pull request #866 from lioncash/typo (diff) | |
download | yuzu-71e8822d23c030311858e6fcc8480b9c52f13f39.tar yuzu-71e8822d23c030311858e6fcc8480b9c52f13f39.tar.gz yuzu-71e8822d23c030311858e6fcc8480b9c52f13f39.tar.bz2 yuzu-71e8822d23c030311858e6fcc8480b9c52f13f39.tar.lz yuzu-71e8822d23c030311858e6fcc8480b9c52f13f39.tar.xz yuzu-71e8822d23c030311858e6fcc8480b9c52f13f39.tar.zst yuzu-71e8822d23c030311858e6fcc8480b9c52f13f39.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/semaphore.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/core/hle/kernel/semaphore.cpp b/src/core/hle/kernel/semaphore.cpp index 96d61ed3a..4b359ed07 100644 --- a/src/core/hle/kernel/semaphore.cpp +++ b/src/core/hle/kernel/semaphore.cpp @@ -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); } |