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

#include <poller.h>

Public Types

enum class  result : uint8_t {
  ERR , DONE , CANCELLED , READ ,
  ERR , DONE , CANCELLED , READ
}
 
enum class  result : uint8_t {
  ERR , DONE , CANCELLED , READ ,
  ERR , DONE , CANCELLED , READ
}
 

Public Member Functions

bool init ()
 
bool destroy ()
 
bool finish ()
 
result poll (int fd)
 
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 [1/2]

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

◆ result [2/2]

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

Member Function Documentation

◆ destroy() [1/2]

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

◆ destroy() [2/2]

bool Poller::destroy ( )

◆ finish() [1/2]

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

◆ finish() [2/2]

bool Poller::finish ( )

◆ init() [1/2]

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

◆ init() [2/2]

bool Poller::init ( )

◆ poll() [1/2]

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

◆ poll() [2/2]

result Poller::poll ( int  fd)

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: