List of timers objects of class rofl::ctimer.
More...
#include <ctimers.h>
|
std::ostream & | operator<< (std::ostream &os, const rofl::ctimers &t) |
|
List of timers objects of class rofl::ctimer.
Inserts a new timer into the timer list.
- Returns
- rofl-common's timer handle
void rofl::ctimers::cancel |
( |
const ctimerid & |
timer_id | ) |
|
|
inline |
Removes a timer identified by the given timer handle from this timer list.
- Parameters
-
Returns the next timer from timer list, when it has already expired.
This method is used for reading in a loop all timers that have already expired. If no or no further timers have expired, an exception is thrown.
- Returns
- copy of rofl::ctimer instance that has expired
- Exceptions
-
Returns a copy of the next expiring timer in this timer list.
- Exceptions
-
Checks whether a certain timer identified by the given handle is still pending.
- Parameters
-
- Returns
- true, when the timer still exists
Resets an existing timer identifier by its handle with a new timeout value.
Please note, the returned timer handle differs from the one previously identifying the timer!
- Parameters
-
timer_id | handle to existing timer |
timespec | new timeout value |
- Returns
- const reference to new timer handle
- Exceptions
-
The documentation for this class was generated from the following file:
- /home/andreas/git/rofl-core/src/rofl/common/ctimers.h