diff options
| author | 2017-01-09 12:48:17 -0500 | |
|---|---|---|
| committer | 2017-02-21 20:51:54 -0500 | |
| commit | 029a11030ee12470e3f3c3431639fbde8d350c77 (patch) | |
| tree | 7add500564e7f7db5ac642db77525b15b7b58793 /src/core/hle/kernel/timer.h | |
| parent | OpenGL: Check if uniform block exists before updating it (#2581) (diff) | |
| download | yuzu-029a11030ee12470e3f3c3431639fbde8d350c77.tar.gz yuzu-029a11030ee12470e3f3c3431639fbde8d350c77.tar.xz yuzu-029a11030ee12470e3f3c3431639fbde8d350c77.zip | |
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; |