Common naming conventions for event handling methods: handleFooBar() instead of onFooBar()

This commit is contained in:
Pavel Kirienko
2014-03-10 14:03:46 +04:00
parent 393641b5b6
commit 3d8285b123
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ uint64_t MonotonicDeadlineScheduler::pollAndGetMonotonicTimestamp(ISystemClock&
return ts;
handlers_.remove(mdh);
mdh->onMonotonicDeadline(ts); // This handler can be re-registered immediately
mdh->handleMonotonicDeadline(ts); // This handler can be re-registered immediately
}
assert(0);
return 0;
+2 -2
View File
@@ -10,7 +10,7 @@ namespace uavcan
const uint64_t Timer::InfinitePeriod;
void Timer::onMonotonicDeadline(uint64_t monotonic_timestamp)
void Timer::handleMonotonicDeadline(uint64_t monotonic_timestamp)
{
assert(!isRunning());
@@ -18,7 +18,7 @@ void Timer::onMonotonicDeadline(uint64_t monotonic_timestamp)
startWithDeadline(getMonotonicDeadline() + period_);
// Application can re-register the timer with different params, it's OK
onTimerEvent(TimerEvent(this, getMonotonicDeadline(), monotonic_timestamp));
handleTimerEvent(TimerEvent(this, getMonotonicDeadline(), monotonic_timestamp));
}
void Timer::startOneShotWithDeadline(uint64_t monotonic_deadline_usec)