28 [[nodiscard]]
bool poll(
int fd);
49 std::array<int, 2> wakeupPipe;
51 std::atomic_bool abortFlag =
false;
Polls for events on a given file descriptor.
Poller(const Poller &)=delete
Poller & operator=(Poller &&)=delete
bool poll(int fd)
Waits for an event to occur on the given file descriptor.
Poller & operator=(const Poller &)=delete
void reset()
Reset aborted() to false.
bool aborted() const
Returns true iff abort() was called.
void abort()
Aborts a poll in progress and any future poll attempts.
This file implemented 3 utility functions: