#include "utils.hh"
Public Member Functions | |
EventFd () | |
void | flush () |
int | inputfd () |
int | open () |
bool | opened () |
bool | pollin () |
void | wakeup () |
~EventFd () | |
Wakeup facility for IPC.
|
explicit |
~EventFd | ( | ) |
int open | ( | ) |
Opens the eventfd and returns -errno.
bool opened | ( | ) |
Indicates whether eventfd has been opened.
void wakeup | ( | ) |
Wakeup polling end.
int inputfd | ( | ) |
Returns the file descriptor for POLLIN.
bool pollin | ( | ) |
Checks whether events are pending.
void flush | ( | ) |
Clear pending wakeups.