24#ifndef LELY_IO2_DEV_HPP_
25#define LELY_IO2_DEV_HPP_
39 operator io_dev_t*()
const noexcept {
return dev; }
An abstract task executor. This class is a wrapper around #ev_exec_t*.
A refence to an I/O context. This class is a wrapper around #io_ctx_t*.
An abstract I/O device. This class is a wrapper around #io_dev_t*.
::std::size_t abort_all() noexcept
ContextBase get_ctx() const noexcept
ev::Executor get_executor() const noexcept
bool cancel(ev_task &task) noexcept
bool abort(ev_task &task) noexcept
::std::size_t cancel_all() noexcept
This header file is part of the I/O library; it contains the C++ interface for the I/O context.
This header file is part of the event library; it contains the C++ interface for the abstract task ex...
This header file is part of the I/O library; it contains the abstract I/O device interface.
size_t io_dev_abort(io_dev_t *dev, struct ev_task *task)
Aborts the asynchronous operation submitted to *dev, if its task has not yet been submitted to its ex...
const struct io_dev_vtbl *const io_dev_t
An abstract I/O device.
io_ctx_t * io_dev_get_ctx(const io_dev_t *dev)
Returns a pointer to the I/O context with which the I/O device is registered.
size_t io_dev_cancel(io_dev_t *dev, struct ev_task *task)
Cancels the asynchronous operation submitted to *dev, if its task has not yet been submitted to its e...
ev_exec_t * io_dev_get_exec(const io_dev_t *dev)
Returns a pointer to the executor used by the I/O device to execute asynchronous tasks.