#include <scheduler.h>
Inheritance diagram for scheduler::TaskTimeout:

Public Member Functions | |
| TaskTimeout (int type, time_t timeout) | |
| Constructor. | |
| TaskTimeout (TaskTimeout const &t) | |
| Copy constructor. | |
| virtual TaskTimeout & | operator= (TaskTimeout const &right) |
| Assignment operator. | |
| virtual bool | poll () |
| Returns true and resets the last time the task was run if the interval has elapsed. | |
| time_t | timeout () const |
| Returns the interval between two runs. | |
| time_t | timeout (time_t timeout) |
| Sets the interval between two runs. | |
| time_t | last_run () const |
| Returns the last time the task was run. | |
Protected Attributes | |
| time_t | m_timeout |
| Interval between two runs. | |
| time_t | m_lastrun |
| When was the task run for the last time? | |
|
||||||||||||
|
This constructor sets the task type and the timeout.
|
|
|
Sets the interval between two runs.
|
1.4.6