24#ifndef LEYL_IO2_SYS_TIMER_HPP_
25#define LEYL_IO2_SYS_TIMER_HPP_
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)
void throw_errc(int errc=get_errc())
Throws an std::system_error exception corresponding to the specified or current (thread-specific) nat...
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.
struct __io_poll io_poll_t
An opaque I/O polling interface type.
This header file is part of the I/O library; it contains the C++ interface for the abstract timer.
int clockid_t
Used for clock ID type in the clock and timer functions.