37 void epoll_ctl(
int epfd,
int op,
int fd,
struct epoll_event *event =
nullptr);
98 unsigned epoll_wait(
int epfd,
struct epoll_event *events,
int maxevents,
151 const struct itimerspec *new_value,
152 struct itimerspec *old_value);
An RAII handle type which owns an opaque resource of a specified type, and calls a designated functio...
Definition: handle.hpp:40
Definition: assert.hpp:13
w::handle< int, -1, ::close > fd
An RAII util::handle type for POSIX file descriptors.
Definition: posix.hpp:25
void timerfd_settime(int fd, int flags, const struct itimerspec *new_value, struct itimerspec *old_value)
Sets the timeout and repetition interval of a timer file descriptor.
Definition: linux.cpp:102
unsigned epoll_wait(int epfd, struct epoll_event *events, int maxevents, std::chrono::milliseconds timeout=std::chrono::milliseconds(-1))
Waits for events to occur on an epoll instance.
Definition: linux.cpp:61
void eventfd_write(int evfd, std::uint64_t value)
Modifies the counter value of an event file descriptor; see the man page of eventfd() for a descripti...
Definition: linux.cpp:89
w::fd eventfd(unsigned initval=0, int flags=0)
Creates an event file descriptor.
Definition: linux.cpp:74
w::fd epoll_create(int size=sizeof(nullptr))
Creates an epoll instance.
Definition: linux.cpp:21
w::fd timerfd_create(int clockid, int flags=0)
Creates a timer file descriptor.
Definition: linux.cpp:94
std::uint64_t eventfd_read(int evfd)
Reads the current counter value of an event file descriptor; see the man page of eventfd() for a desc...
Definition: linux.cpp:82
void epoll_ctl(int epfd, int op, int fd, struct epoll_event *event=nullptr)
Manipulates an epoll instance.
Definition: linux.cpp:29