24#ifndef LELY_EV_POLL_HPP_
25#define LELY_EV_POLL_HPP_
38 explicit Poll(
ev_poll_t* poll) noexcept : poll_(poll) {}
40 operator ev_poll_t*()
const noexcept {
return poll_; }
void * self() const noexcept
This header file is part of the utilities library; it contains C++ convenience functions for creating...
void throw_errc(int errc=get_errc())
Throws an std::system_error exception corresponding to the specified or current (thread-specific) nat...
This header file is part of the event library; it contains the abstract polling interface.
void * ev_poll_self(const ev_poll_t *poll)
Returns the identifier of the calling thread.
const struct ev_poll_vtbl *const ev_poll_t
The abstract polling interface.
int ev_poll_kill(ev_poll_t *poll, void *thr)
Interrupts a polling wait on the specified thread.
int ev_poll_wait(ev_poll_t *poll, int timeout)
Waits for at most timeout milliseconds while polling for new events.