diff options
| author | 2017-02-24 20:48:31 -0800 | |
|---|---|---|
| committer | 2017-02-24 20:48:31 -0800 | |
| commit | fb5301cf6e7fd5d9ff2ea28b0ee610a7861146e6 (patch) | |
| tree | f913ca09229ad69b2a7af02fc7564481b316cf70 /src/core/hle/kernel/timer.h | |
| parent | Fixes file upload pattern in the travis.yml to include macOS releases (#2592) (diff) | |
| parent | Timers: Return an error when calling SetTimer with negative timeouts. (diff) | |
| download | yuzu-fb5301cf6e7fd5d9ff2ea28b0ee610a7861146e6.tar.gz yuzu-fb5301cf6e7fd5d9ff2ea28b0ee610a7861146e6.tar.xz yuzu-fb5301cf6e7fd5d9ff2ea28b0ee610a7861146e6.zip | |
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: | |||
| 54 | void Cancel(); | 54 | void Cancel(); |
| 55 | void Clear(); | 55 | void Clear(); |
| 56 | 56 | ||
| 57 | /** | ||
| 58 | * Signals the timer, waking up any waiting threads and rescheduling it | ||
| 59 | * for the next interval. | ||
| 60 | * This method should not be called from outside the timer callback handler, | ||
| 61 | * lest multiple callback events get scheduled. | ||
| 62 | */ | ||
| 63 | void Signal(int cycles_late); | ||
| 64 | |||
| 57 | private: | 65 | private: |
| 58 | Timer(); | 66 | Timer(); |
| 59 | ~Timer() override; | 67 | ~Timer() override; |