May be used as a thread (with start()) or in the current thread (with run()).
Public Methods | |
io_event_loop () | |
Constructor. | |
~io_event_loop () | |
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 | io_handler |
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. |
|
|
|
|