Platform timer service.
More...
#include <timerservice.h>
Platform timer service.
Realization of the TimerService interface.
Definition at line 53 of file timerservice.h.
◆ TimerService()
EMANE::TimerService::TimerService |
( |
| ) |
|
|
protecteddefault |
◆ cancelTimedEvent()
bool EMANE::TimerService::cancelTimedEvent |
( |
TimerEventId |
eventId | ) |
|
cancel a timed event
- Parameters
-
eventId | event id to cancel |
Definition at line 38 of file timerservice.cc.
◆ destroy()
Destroys the single instance of type T. Once destroyed it cannot be used or recreated. This is not a thread-safe method.
Definition at line 67 of file singleton.h.
◆ instance()
Provides thread-safe access to a single instance of type T. It does not provide thread-safety for T methods.
- Returns
- A pointer to T
Definition at line 56 of file singleton.h.
◆ 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 |
◆ scheduleTimedEvent()
schedule 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. |
pTimerServiceUser | Pointer to the TimerServiceUser |
- Returns
- identifier corresponding to the event id, or -1 on failure
Definition at line 44 of file timerservice.cc.
The documentation for this class was generated from the following files: