Timer service interface the allows for scheduling timers that are placed on the NEMQueuedLayer functor queue for processing.
More...
#include <timerserviceprovider.h>
Timer service interface the allows for scheduling timers that are placed on the NEMQueuedLayer functor queue for processing.
Definition at line 53 of file timerserviceprovider.h.
◆ TimerCallback
◆ ~TimerServiceProvider()
virtual EMANE::TimerServiceProvider::~TimerServiceProvider |
( |
| ) |
|
|
inlinevirtual |
◆ TimerServiceProvider()
EMANE::TimerServiceProvider::TimerServiceProvider |
( |
| ) |
|
|
inlineprotected |
◆ cancelTimedEvent()
virtual bool EMANE::TimerServiceProvider::cancelTimedEvent |
( |
TimerEventId |
eventId | ) |
|
|
pure virtual |
◆ schedule() [1/2]
template<typename Function >
◆ schedule() [2/2]
template<typename Function >
Schedules an generic interval timer callable
- Parameters
-
fn | A callable object |
absoluteTimePoint | Absolute time of the timeout |
interval | Repeat interval |
◆ schedule_i()
◆ scheduleTimedEvent()
virtual TimerEventId EMANE::TimerServiceProvider::scheduleTimedEvent |
( |
const TimePoint & |
timePoint, |
|
|
const void * |
arg = nullptr , |
|
|
const Duration & |
interval = Duration::zero() |
|
) |
| |
|
pure virtual |
Schedules a timed event
- Parameters
-
timePoint | Schedule absolute time for timer to go off |
arg | Opaque data pointer |
interval | Timer reschedule interval. Default is one shot. |
- Returns
- timer id
Implemented in EMANE::TimerServiceProxy, and EMANE::NEMTimerServiceProxy.
The documentation for this class was generated from the following files: