Evo C++ Library v0.5.1
|
#include <evo/ioasync_base.h>
Manages an event-loop for async I/O.
Public Types | |
typedef struct event_base * | Handle |
Public Member Functions | |
AsyncEventLoop () | |
Constructor. More... | |
~AsyncEventLoop () | |
Destructor. More... | |
bool | active () const |
Get whether event-loop is active. More... | |
Handle | handle () |
Get event loop handle. More... | |
bool | run1 () |
Run event loop with one pass and process I/O events. More... | |
void | shutdown () |
Shutdown event loop. More... | |
typedef struct event_base* Handle |
|
inline |
Constructor.
|
inline |
Destructor.
|
inline |
Get whether event-loop is active.
|
inline |
Get event loop handle.
|
inline |
Run event loop with one pass and process I/O events.
run*()
methods must only be called from 1 thread at a time, otherwise results are undefined
|
inline |
Shutdown event loop.