#include <timerserviceproxy.h>
|
| | TimerServiceProxy () |
| |
| | ~TimerServiceProxy () |
| |
| 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 | setTimerServiceUser (TimerServiceUser *pTimerServiceUser) |
| |
| 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 44 of file timerserviceproxy.h.
◆ TimerCallback
◆ TimerServiceProxy()
| EMANE::TimerServiceProxy::TimerServiceProxy |
( |
| ) |
|
◆ ~TimerServiceProxy()
| EMANE::TimerServiceProxy::~TimerServiceProxy |
( |
| ) |
|
◆ cancelTimedEvent()
| bool EMANE::TimerServiceProxy::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 64 of file timerserviceproxy.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 54 of file timerserviceproxy.cc.
◆ setTimerServiceUser()
| void EMANE::TimerServiceProxy::setTimerServiceUser |
( |
TimerServiceUser * |
pTimerServiceUser | ) |
|
◆ pTimerServiceUser_
The documentation for this class was generated from the following files: