#include <rex/platform/timer.h>
|
|
using | clock = std::chrono::steady_clock |
|
| | TimerQueueWaitItem (std::function< void(void *)> callback, void *userdata, TimerQueue *parent_queue, clock::time_point due, clock::duration interval) |
| void | Disarm () |
Pending timer in the process timer queue.
◆ TimerQueueWaitItem()
| rex::platform::TimerQueueWaitItem::TimerQueueWaitItem |
( |
std::function< void(void *)> | callback, |
|
|
void * | userdata, |
|
|
TimerQueue * | parent_queue, |
|
|
clock::time_point | due, |
|
|
clock::duration | interval ) |
|
inline |
Creates a wait item. Use QueueTimerOnce or QueueTimerRecurring instead.
- Parameters
-
| callback | Function called on the dispatch thread. |
| parent_queue | Queue that owns the item. |
| interval | Repeat interval, 0 for a single run. |
◆ Disarm()
| void rex::platform::TimerQueueWaitItem::Disarm |
( |
| ) |
|
Cancels the item. No callback runs after it returns. Blocks while the callback runs unless called from that callback. Holding a lock the callback also takes can deadlock.
The documentation for this struct was generated from the following file: