#include <Timeout.h>
Collaboration diagram for Timeout:

Public Types | |
| typedef bool (* | Callback )(void*) |
Public Methods | |
| Timeout (long milliseconds, bool periodic = false, Callback callback = 0, void* data = 0) | |
| ~Timeout () | |
| void | Set (long milliseconds) |
| Set the interval for the timeout. | |
| void | Start () |
| Start the timeout. | |
| void | Stop () |
| Stop the timeout. | |
| void | Wait () |
| Wait for the timeout to occurr if it hasn't already. | |
| void | SetCallback (Callback callback, void* data = 0) |
| Set the function to callback when the timeout occurs. | |
| void | SetPeriodic () |
| void | SetOneShot () |
The callback doesn't work under linux. You'll have to use wait instead.
1.2.3 written by Dimitri van Heesch,
© 1997-2000