39#define SRN_REACTOR_BACKEND_FEAT_NONE 0
49#define SRN_REACTOR_BACKEND_FEAT_FILE_OFFLOAD 1U
const srn_reactor_backend_t srn_reactor_backend_epoll
Error handling for the runtime.
A runtime error, a tag classifying the failure and a human-readable message.
One async system behind the reactor contract.
void(* shutdown)(srn_reactor_t *reactor)
Clean up after the backend.
void(* wake)(srn_reactor_t *reactor)
void(* submit)(srn_reactor_t *reactor, size_t channel, const srn_reactor_io_request_t *req)
Submit a new request to the backend.
const char * name
A short name for diagnostics, for example "epoll".
uint32_t features
Bitmap of SRN_REACTOR_BACKEND_FEAT_* flags this backend requires from the reactor.
void(* wait)(srn_reactor_t *reactor, int timeout_ms)
Wait for readiness and complete any ready operations.
A submission, one request a fiber places on its channel.