Timers: Immediately signal the timer if it was started with an initial value of 0.

This commit is contained in:
Subv 2017-01-09 12:48:17 -05:00
parent e594e63bb5
commit 029a11030e
2 changed files with 31 additions and 16 deletions

View file

@ -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;