diff options
Diffstat (limited to 'src/core/hle/kernel/timer.cpp')
| -rw-r--r-- | src/core/hle/kernel/timer.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/core/hle/kernel/timer.cpp b/src/core/hle/kernel/timer.cpp index 9f0fbafe2..62bdf07c7 100644 --- a/src/core/hle/kernel/timer.cpp +++ b/src/core/hle/kernel/timer.cpp | |||
| @@ -29,13 +29,8 @@ public: | |||
| 29 | u64 initial_delay; ///< The delay until the timer fires for the first time | 29 | u64 initial_delay; ///< The delay until the timer fires for the first time |
| 30 | u64 interval_delay; ///< The delay until the timer fires after the first time | 30 | u64 interval_delay; ///< The delay until the timer fires after the first time |
| 31 | 31 | ||
| 32 | ResultVal<bool> Wait(bool wait_thread) override { | 32 | ResultVal<bool> Wait() override { |
| 33 | bool wait = !signaled; | 33 | return MakeResult<bool>(!signaled); |
| 34 | if (wait && wait_thread) { | ||
| 35 | AddWaitingThread(GetCurrentThread()); | ||
| 36 | Kernel::WaitCurrentThread_WaitSynchronization(WAITTYPE_TIMER, this); | ||
| 37 | } | ||
| 38 | return MakeResult<bool>(wait); | ||
| 39 | } | 34 | } |
| 40 | 35 | ||
| 41 | ResultVal<bool> Acquire() override { | 36 | ResultVal<bool> Acquire() override { |