summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2014-12-13 16:29:11 +0100
committerSubv <subv2112@gmail.com>2014-12-13 19:40:19 +0100
commitea958764318d7446618b838f24a5dc8099a76e3b (patch)
tree0ad143a474cfae6a8cbe34f7cdbc0fd8fdc29726 /src
parentKernel/Semaphores: Invert the available count checking. (diff)
downloadyuzu-ea958764318d7446618b838f24a5dc8099a76e3b.tar
yuzu-ea958764318d7446618b838f24a5dc8099a76e3b.tar.gz
yuzu-ea958764318d7446618b838f24a5dc8099a76e3b.tar.bz2
yuzu-ea958764318d7446618b838f24a5dc8099a76e3b.tar.lz
yuzu-ea958764318d7446618b838f24a5dc8099a76e3b.tar.xz
yuzu-ea958764318d7446618b838f24a5dc8099a76e3b.tar.zst
yuzu-ea958764318d7446618b838f24a5dc8099a76e3b.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/semaphore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/semaphore.cpp b/src/core/hle/kernel/semaphore.cpp
index 331d32069..6f56da8a9 100644
--- a/src/core/hle/kernel/semaphore.cpp
+++ b/src/core/hle/kernel/semaphore.cpp
@@ -34,7 +34,7 @@ public:
}
ResultVal<bool> WaitSynchronization() override {
- bool wait = available_count == 0;
+ bool wait = !IsAvailable();
if (wait) {
Kernel::WaitCurrentThread(WAITTYPE_SEMA, GetHandle());