24#ifndef LELY_EV_POLL_HPP_
25#define LELY_EV_POLL_HPP_
40 operator ev_poll_t*()
const noexcept {
return poll_; }
51 if (
ev_poll_wait(*
this, timeout) == -1) util::throw_errc(
"wait");
57 if (
ev_poll_kill(*
this, thr) == -1) util::throw_errc(
"kill");
The abstract polling interface.
void * self() const noexcept
This header file is part of the utilities library; it contains C++ convenience functions for creating...
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.