ark::with_async_context class

able to bound to an async_context

io objects inherited from this class is able to store a nullable reference to an async_context, then the context will be used for async io operations.

Derived classes

class nonseekable_fd
An io object, denotes a non lseek()-able fd as defined in kernel.
class seekable_fd
An io object, denotes a lseek()-able fd as defined in kernel.

Public functions

auto context() const -> async_context& noexcept
retrieves the context

Protected functions

void set_async_context(async_context* ctx) noexcept
bound this io object to an async_context

Function documentation

async_context& ark::with_async_context::context() const noexcept

retrieves the context

void ark::with_async_context::set_async_context(async_context* ctx) protected noexcept

bound this io object to an async_context