#include <nemtimerserviceproxy.h>
|
| NEMTimerServiceProxy () |
|
| ~NEMTimerServiceProxy () |
|
bool | cancelTimedEvent (TimerEventId eventId) override |
|
TimerEventId | scheduleTimedEvent (const TimePoint &timeout, const void *arg, const Duration &interval) override |
|
void | processTimedEvent (TimerEventId eventId, const TimePoint &requestedExpireTime, const TimePoint &scheduleTime, const TimePoint &fireTime, const void *arg) override |
|
void | setNEMLayer (NEMQueuedLayer *pNEMQueuedLayer_) |
|
template<typename Function > |
TimerEventId | schedule (Function fn, const TimePoint &timePoint, const Duration &interval=Duration::zero()) |
|
template<typename Function > |
EMANE::TimerEventId | schedule (Function fn, const TimePoint &timePoint, const Duration &interval) |
|
Definition at line 43 of file nemtimerserviceproxy.h.
◆ TimerCallback
◆ NEMTimerServiceProxy()
EMANE::NEMTimerServiceProxy::NEMTimerServiceProxy |
( |
| ) |
|
◆ ~NEMTimerServiceProxy()
EMANE::NEMTimerServiceProxy::~NEMTimerServiceProxy |
( |
| ) |
|
◆ cancelTimedEvent()
bool EMANE::NEMTimerServiceProxy::cancelTimedEvent |
( |
TimerEventId |
eventId | ) |
|
|
overridevirtual |
◆ processTimedEvent()
Process a timed event
- Parameters
-
eventId | Identifier corresponding to the timer being processed |
expireTime | The time the timer was scheduled to expire |
scheduleTime | The Time the timer was scheduled |
fireTime | Time time The time the timer actually fired |
arg | Opaque timed event data |
- Note
- All times are abosulte using CLOCK_REALTIME
Reimplemented from EMANE::TimerServiceUser.
Definition at line 62 of file nemtimerserviceproxy.cc.
◆ 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()
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
Implements EMANE::TimerServiceProvider.
Definition at line 52 of file nemtimerserviceproxy.cc.
◆ setNEMLayer()
void EMANE::NEMTimerServiceProxy::setNEMLayer |
( |
NEMQueuedLayer * |
pNEMQueuedLayer_ | ) |
|
◆ pNEMQueuedLayer_
The documentation for this class was generated from the following files: