24 #ifndef LEYL_IO2_SYS_TIMER_HPP_
25 #define LEYL_IO2_SYS_TIMER_HPP_
41 if (!timer) util::throw_errc(
"Timer");
47 other.timer =
nullptr;
54 operator=(
Timer&& other) noexcept {
56 swap(timer, other.timer);
A reference to an abstract timer.
Timer(io_poll_t *poll, ev_exec_t *exec, clockid_t clockid)
const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
This header file is part of the I/O library; it contains the I/O system timer declarations.
io_timer_t * io_timer_create(io_poll_t *poll, ev_exec_t *exec, clockid_t clockid)
Creates a new I/O system timer.
void io_timer_destroy(io_timer_t *timer)
Destroys an I/O system timer.
An I/O polling interface.
This header file is part of the I/O library; it contains the C++ interface for the abstract timer.