24 #ifndef LELY_IO2_DEV_HPP_ 25 #define LELY_IO2_DEV_HPP_ 39 operator io_dev_t*()
const noexcept {
return dev; }
84 #endif // !LELY_IO2_DEV_HPP_ A refence to an I/O context. This class is a wrapper around io_ctx_t*.
ContextBase get_ctx() const noexcept
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.
::std::size_t abort_all() noexcept
This header file is part of the I/O library; it contains the C++ interface for the I/O context...
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...
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...
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.
This header file is part of the event library; it contains the C++ interface for the abstract task ex...
ev::Executor get_executor() const noexcept
An abstract task executor. This class is a wrapper around ev_exec_t*.
::std::size_t cancel_all() noexcept
const struct io_dev_vtbl *const io_dev_t
An abstract I/O device.
This header file is part of the I/O library; it contains the abstract I/O device interface.
bool abort(ev_task &task) noexcept
bool cancel(ev_task &task) noexcept
An abstract I/O device. This class is a wrapper around io_dev_t*.