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);
68 #endif // !LEYL_IO2_SYS_TIMER_HPP_ A reference to an abstract timer.
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.
An I/O polling interface.
void io_timer_destroy(io_timer_t *timer)
Destroys an I/O system timer.
io_timer_t * io_timer_create(io_poll_t *poll, ev_exec_t *exec, clockid_t clockid)
Creates a new I/O system timer.
Timer(io_poll_t *poll, ev_exec_t *exec, clockid_t clockid)
This header file is part of the I/O library; it contains the C++ interface for the abstract timer...