A generic event loop wrapper that uses TSelect as its poller. More...
#include <loop.hpp>
Public Member Functions | |
void | Loop () |
Runs the main loop until Stop() is called. | |
void | Stop () |
Stops the loop. | |
void | Step () |
Performs a single iteration of polling and waking up ready handles. | |
TPoller & | Poller () |
Provides access to the underlying poller instance. | |
A generic event loop wrapper that uses TSelect as its poller.
The event loop continuously calls Step() until explicitly stopped via Stop().
TPoller | A type that provides polling and wakeup mechanisms (TSelect here). |