Gives a callback after a specified timeout.
More...
#include <ebase.h>
Gives a callback after a specified timeout.
This class emits the signal eTimer::timeout
after the specified timeout.
◆ ~eTimer()
◆ changeInterval()
void eTimer::changeInterval |
( |
long |
msek | ) |
|
◆ create()
Constructs a timer.
The timer is not yet active, it has to be started with start
.
- Parameters
-
context | The thread from which the signal should be emitted. |
◆ getNextActivation()
timespec& eTimer::getNextActivation |
( |
| ) |
|
|
inline |
◆ isActive()
bool eTimer::isActive |
( |
| ) |
|
|
inline |
◆ needsActivation() [1/2]
bool eTimer::needsActivation |
( |
| ) |
|
|
inline |
◆ needsActivation() [2/2]
bool eTimer::needsActivation |
( |
const timespec & |
now | ) |
|
|
inline |
◆ operator<()
bool eTimer::operator< |
( |
const eTimer & |
t | ) |
const |
|
inline |
◆ start()
void eTimer::start |
( |
long |
msec, |
|
|
bool |
b = false |
|
) |
| |
◆ startLongTimer()
void eTimer::startLongTimer |
( |
int |
seconds | ) |
|
◆ stop()
◆ eMainloop
◆ timeout
The documentation for this class was generated from the following files: