32 prefix_ void senf::ppi::IntervalTimer::v_enable()
34 if (eventsPerInterval_ <= 0)
41 prefix_ void senf::ppi::IntervalTimer::v_disable()
46 prefix_ void senf::ppi::IntervalTimer::schedule()
52 prefix_ void senf::ppi::IntervalTimer::cb()
58 if (info_.
number >= eventsPerInterval_) {
void callback(EventArg event, ClockService::clock_type time)
Forward event to user callback.
ClockService::clock_type const & now()
Current time at last event dispatch.
EventManager public header.
void timeout(ClockService::clock_type const &timeout, bool initiallyEnabled=true)
EventManager & manager() const
EventManager of the event.
unsigned number
Number of the current event within the interval.
bool enabled() const
Check, whether the event is currently enabled.
ClockService::clock_type intervalStart
Start of the current time interval.
IntervalTimer public header.
ClockService::clock_type expected
Scheduled event time.