Timers: Immediately signal the timer if it was started with an initial value of 0.
This commit is contained in:
parent
e594e63bb5
commit
029a11030e
2 changed files with 31 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue