nngn
Loading...
Searching...
No Matches
Poller Class Reference

#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 = {}
 

Member Enumeration Documentation

◆ result

enum class Poller::result : uint8_t
strong
Enumerator
ERR 
DONE 
CANCELLED 
READ 

Member Function Documentation

◆ destroy()

bool Poller::destroy ( )
Here is the caller graph for this function:

◆ finish()

bool Poller::finish ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

bool Poller::init ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ poll()

Poller::result Poller::poll ( int fd)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ pipe_fds

std::array<int, 2> Poller::pipe_fds = {-1, -1}
private

◆ poll_fds

std::array<pollfd, 2> Poller::poll_fds = {}
private

The documentation for this class was generated from the following files: