class
with_async_contextable to bound to an async_context
Contents
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