summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/semaphore.cpp
diff options
context:
space:
mode:
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 {