TimerEvent fields were renamed; timer pointer removed

This commit is contained in:
Pavel Kirienko
2014-03-14 01:09:13 +04:00
parent 6d584734bb
commit cefc346ebb
3 changed files with 12 additions and 18 deletions
+3 -3
View File
@@ -12,13 +12,13 @@ void Timer::handleDeadline(MonotonicTime current_timestamp)
{
assert(!isRunning());
const MonotonicTime scheduled_deadline = getDeadline();
const MonotonicTime scheduled_time = getDeadline();
if (period_ < MonotonicDuration::getInfinite())
startWithDeadline(scheduled_deadline + period_);
startWithDeadline(scheduled_time + period_);
// Application can re-register the timer with different params, it's OK
handleTimerEvent(TimerEvent(this, scheduled_deadline, current_timestamp));
handleTimerEvent(TimerEvent(scheduled_time, current_timestamp));
}
void Timer::startOneShotWithDeadline(MonotonicTime deadline)