Timeout.
More...
#include <Timeout.h>
|
| | Timeout (unsigned long milli) |
| | standard constructor for new timeouts More...
|
| |
|
Timeout & | operator= (const Timeout &t) |
| | assignment operator
|
| |
| void | extend (unsigned long msec) |
| | Extend the timeout termination by the specified time. More...
|
| |
| void | reset (unsigned long msec) |
| | reset the timeout to the specified time, and reset the 'expired' flag. More...
|
| |
|
void | cancel () |
| | cancel the Timeout immediately
|
| |
|
bool | isExpired () const |
| | test whether or not the timeout has fired or not
|
| |
| virtual void | expired () |
| | Implement the expiry behaviour of this object. More...
|
| |
|
virtual const WFMath::TimeStamp & | due () const |
| | The time value when this event is due.
|
| |
|
|
sigc::signal< void > | Expired |
| | The timeout signal.
|
| |
|
|
WFMath::TimeStamp | _due |
| | interval at which the timeout is due
|
| |
|
bool | _fired |
| | flag if the timeout has expired
|
| |
| Eris::Timeout::Timeout |
( |
unsigned long |
milli | ) |
|
standard constructor for new timeouts
- Parameters
-
| label | The unique timeout identification label |
| milli | The initial timeout value, in milliseconds |
References _due.
| void Eris::Timeout::expired |
( |
| ) |
|
|
virtual |
Implement the expiry behaviour of this object.
The TimedEvent is automatically removed from the service before this method is called, so deleting the object, or re-registering it are permitted.
Implements Eris::TimedEvent.
References _fired, and Expired.
| void Eris::Timeout::extend |
( |
unsigned long |
msec | ) |
|
Extend the timeout termination by the specified time.
This has no effect if the timeout has already fired
- Parameters
-
| msec | The interval to extend the timeout by, in milliseconds |
References _due.
| void Eris::Timeout::reset |
( |
unsigned long |
msec | ) |
|
reset the timeout to the specified time, and reset the 'expired' flag.
This means invoking reset() is equivalent to destroying the Timeout object and creating a new one with the same name.
References _due, and _fired.
The documentation for this class was generated from the following files: