bool cancelTimedEvent(TimerEventId eventId)
cancel a timed event
void setNEMLayer(NEMQueuedLayer *pNEMQueuedLayer_)
std::function< void(const TimePoint &, const TimePoint &, const TimePoint &)> TimerCallback
void processTimedEvent(TimerEventId eventId, const TimePoint &expireTime, const TimePoint &scheduleTime, const TimePoint &fireTime, const void *arg) override
NEMQueuedLayer * pNEMQueuedLayer_
bool cancelTimedEvent(TimerEventId eventId) override
TimerEventId scheduleTimedEvent(const TimePoint &timePoint, const void *arg, const Duration &interval, TimerServiceUser *pTimerServiceUser)
schedule a timed event.
TimerEventId schedule(Function fn, const TimePoint &timePoint, const Duration &interval=Duration::zero())
void processTimedEvent(TimerEventId eventId, const TimePoint &requestedExpireTime, const TimePoint &scheduleTime, const TimePoint &fireTime, const void *arg) override
Clock::time_point TimePoint
TimerEventId scheduleTimedEvent(const TimePoint &timeout, const void *arg, const Duration &interval) override
static TimerService * instance()
TimerEventId schedule_i(TimerCallback callback, const TimePoint &timePoint, const Duration &interval) override
void processTimer(Function fn, const TimePoint &expireTime, const TimePoint &scheduleTime, const TimePoint &fireTime)
A layer stack with a porcessing queue between each layer to decouple to intra queue processing...