May be used as a Thread (with start()) or in the current Thread (with run()).
Public Methods | |
IOEventLoop () | |
Constructor. | |
~IOEventLoop () | |
Destructor. | |
void | run () |
Invokes the event loop. | |
void | run_once () |
Invokes the event loop once through. | |
void | terminate () |
Signals that the event loop should terminate. | |
void | wake () |
Wakes the event loop up immediately. | |
Friends | |
class | IOHandler |
class | Timer |
|
Constructor.
|
|
Destructor.
|
|
Invokes the event loop. Returns only when an event handler (or other Thread) signals the event loop to terminate via the terminate method. |
|
Invokes the event loop once through.
|
|
Signals that the event loop should terminate. May be invoked either by event handlers or by another Thread. |
|
Wakes the event loop up immediately. May be invoked either by event handlers or by another Thread. |
|
|
|
|