summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/semaphore.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-01-18 19:25:51 +0100
committerbunnei <bunneidev@gmail.com>2015-01-22 02:47:38 +0100
commite5a9f1c64483e01b7856c581ae5685d0c5ad88dc (patch)
tree6ab483afc7aa00bdcff51f0d6b7015b9edd5e5bf /src/core/hle/kernel/semaphore.cpp
parentWaitSynchronizationN: Improved comments (diff)
downloadyuzu-e5a9f1c64483e01b7856c581ae5685d0c5ad88dc.tar
yuzu-e5a9f1c64483e01b7856c581ae5685d0c5ad88dc.tar.gz
yuzu-e5a9f1c64483e01b7856c581ae5685d0c5ad88dc.tar.bz2
yuzu-e5a9f1c64483e01b7856c581ae5685d0c5ad88dc.tar.lz
yuzu-e5a9f1c64483e01b7856c581ae5685d0c5ad88dc.tar.xz
yuzu-e5a9f1c64483e01b7856c581ae5685d0c5ad88dc.tar.zst
yuzu-e5a9f1c64483e01b7856c581ae5685d0c5ad88dc.zip
Diffstat (limited to 'src/core/hle/kernel/semaphore.cpp')
-rw-r--r--src/core/hle/kernel/semaphore.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/core/hle/kernel/semaphore.cpp b/src/core/hle/kernel/semaphore.cpp
index 42b5cf704..6ccdb2a8f 100644
--- a/src/core/hle/kernel/semaphore.cpp
+++ b/src/core/hle/kernel/semaphore.cpp
@@ -32,15 +32,8 @@ public:
return available_count > 0;
}
- ResultVal<bool> Wait(bool wait_thread) override {
- bool wait = !IsAvailable();
-
- if (wait && wait_thread) {
- Kernel::WaitCurrentThread_WaitSynchronization(WAITTYPE_SEMA, this);
- AddWaitingThread(GetCurrentThread());
- }
-
- return MakeResult<bool>(wait);
+ ResultVal<bool> Wait() override {
+ return MakeResult<bool>(!IsAvailable());
}
ResultVal<bool> Acquire() override {