qb
2.0.0.0
C++17 Actor Framework
|
Base template class for all qb-io specific asynchronous event types. More...
#include <base.h>
Public Types | |
using | ev_t = _EV_EVENT |
Alias for the underlying libev event watcher type. |
Public Member Functions | |
base (ev::loop_ref loop) | |
Constructor. |
Public Attributes | |
IRegisteredKernelEvent * | _interface |
Pointer to the kernel event interface responsible for handling this event. | |
int | _revents |
Stores the event flags (e.g., EV_READ, EV_WRITE) received from libev when the event triggers. |
Base template class for all qb-io specific asynchronous event types.
This template class serves as the foundation for specific event wrappers like qb::io::async::event::io, qb::io::async::event::timer, etc. It wraps the corresponding libev event watcher (e.g. ev::io, ev::timer) and holds a pointer to the IRegisteredKernelEvent interface for dispatching.
_EV_EVENT | The libev event watcher type (e.g. ev::io, ev::timer) being wrapped. |
|
inlineexplicit |
Constructor.
loop | Reference to the libev event loop (ev::loop_ref) this event will be associated with. |