From 029a11030ee12470e3f3c3431639fbde8d350c77 Mon Sep 17 00:00:00 2001 From: Subv Date: Mon, 9 Jan 2017 12:48:17 -0500 Subject: Timers: Immediately signal the timer if it was started with an initial value of 0. --- src/core/hle/kernel/timer.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/core/hle/kernel/timer.h') diff --git a/src/core/hle/kernel/timer.h b/src/core/hle/kernel/timer.h index c174f5664..b0f818933 100644 --- a/src/core/hle/kernel/timer.h +++ b/src/core/hle/kernel/timer.h @@ -54,6 +54,14 @@ public: void Cancel(); void Clear(); + /** + * Signals the timer, waking up any waiting threads and rescheduling it + * for the next interval. + * This method should not be called from outside the timer callback handler, + * lest multiple callback events get scheduled. + */ + void Signal(int cycles_late); + private: Timer(); ~Timer() override; -- cgit v1.2.3