diff options
| author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-02-24 20:48:31 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-24 20:48:31 -0800 |
| commit | fb5301cf6e7fd5d9ff2ea28b0ee610a7861146e6 (patch) | |
| tree | f913ca09229ad69b2a7af02fc7564481b316cf70 /src/core/hle/kernel/timer.h | |
| parent | 0be8f8716cd24cb21e541dc4de6865134dfd51a7 (diff) | |
| parent | 0be77c3ae471f3bed5215b84d7e1d702f2ec1696 (diff) | |
Merge pull request #2421 from Subv/timers
Timers: Immediately signal the timer if it was started with an initial value of 0
Diffstat (limited to 'src/core/hle/kernel/timer.h')
| -rw-r--r-- | src/core/hle/kernel/timer.h | 8 |
1 files changed, 8 insertions, 0 deletions
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; |
