nngn
|
#include <poller.h>
Public Types | |
enum class | result : uint8_t { ERR , DONE , CANCELLED , READ } |
Public Member Functions | |
bool | init () |
bool | destroy () |
bool | finish () |
result | poll (int fd) |
Private Attributes | |
std::array< int, 2 > | pipe_fds = {-1, -1} |
std::array< pollfd, 2 > | poll_fds = {} |
|
strong |
bool Poller::destroy | ( | ) |
bool Poller::finish | ( | ) |
bool Poller::init | ( | ) |
Poller::result Poller::poll | ( | int | fd | ) |
|
private |
|
private |