|
|
| MainLoop () |
| | Default Constructor.
|
|
| MainLoop (Allocator &a) |
| | Construct with allocator.
|
|
virtual | ~MainLoop () |
| | Destructor.
|
|
void | run () |
| | Starts the loop.
|
|
void | exit () |
| | Stops the loop.
|
|
void | processEvents () |
| | Process all queued events.
|
|
Signal< const Event & > & | eventReceived () |
| | Reports all events.
|
|
Signal & | exited () |
| | Emited when the eventloop is exited.
|
| AsyncYield | yieldAsync () |
| | Pauses a coroutine and delegates execution back to the loop.
|
| void | post (Selectable &s) |
| | Posts the loop to run a selectable.
|
|
void | setReady (Selectable &s) |
| | Sets the Selectable as ready without waking the loop.
|
|
void | commitEvent (const Event &ev) |
| | Queues an event and triggers event processing.
|
|
void | queueEvent (const Event &ev) |
| | Only queues an event.
|
|
void | wake () |
| | Triggers event processing.
|
MainLoop is the EventLoop implementation for the platform. It multiplexes I/O and timers. Application creates one by default. Construct a MainLoop directly when the process has no Application, or when a second loop runs in another thread.