mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 15:23:34 +08:00
Common naming conventions for event handling methods: handleFooBar() instead of onFooBar()
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user