class
event_fdwraps fildes created by eventfd(2) as an io object
Contents
Base classes
- class nonseekable_fd
- An io object, denotes a non lseek()-able fd as defined in kernel.
Public static functions
-
static auto create(unsigned int count,
int flags) -> result<event_
fd> noexcept - construct and return an event_fd just like calling eventfd(2)
-
static auto create(async_
context& ctx, unsigned int count, int flags) -> result<event_ fd> noexcept - construct and return an event_fd just like calling eventfd(2), and bind to the given ark::
async_context
Constructors, destructors, conversion operators
- event_fd(int fd_int) protected
- constructs from int fildes
Function documentation
ark:: event_fd:: event_fd(int fd_int) protected
constructs from int fildes
Parameters | |
---|---|
fd_int in | must be an fildes opened by eventfd(2) |