APM:Libraries
Public Member Functions | Private Attributes | List of all members
Linux::Poller Class Reference

#include <Poller.h>

Collaboration diagram for Linux::Poller:
[legend]

Public Member Functions

 Poller ()
 
 ~Poller ()
 
bool operator! () const
 
 operator bool () const
 
bool register_pollable (Pollable *p, uint32_t events)
 
void unregister_pollable (const Pollable *p)
 
int poll () const
 
void wakeup () const
 

Private Attributes

int _epfd = -1
 
WakeupPollable _wakeup {}
 

Detailed Description

Definition at line 73 of file Poller.h.

Constructor & Destructor Documentation

◆ Poller()

Linux::Poller::Poller ( )

Definition at line 43 of file Poller.cpp.

Here is the call graph for this function:

◆ ~Poller()

Linux::Poller::~Poller ( )
inline

Definition at line 77 of file Poller.h.

Here is the call graph for this function:

Member Function Documentation

◆ operator bool()

Linux::Poller::operator bool ( ) const
inlineexplicit

Definition at line 93 of file Poller.h.

◆ operator!()

bool Linux::Poller::operator! ( ) const
inline

Definition at line 88 of file Poller.h.

◆ poll()

int Linux::Poller::poll ( ) const

Definition at line 100 of file Poller.cpp.

Here is the call graph for this function:

◆ register_pollable()

bool Linux::Poller::register_pollable ( Pollable p,
uint32_t  events 
)

Definition at line 72 of file Poller.cpp.

Here is the call graph for this function:

◆ unregister_pollable()

void Linux::Poller::unregister_pollable ( const Pollable p)

Definition at line 93 of file Poller.cpp.

Here is the call graph for this function:

◆ wakeup()

void Linux::Poller::wakeup ( ) const

Definition at line 134 of file Poller.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _epfd

int Linux::Poller::_epfd = -1
private

Definition at line 123 of file Poller.h.

◆ _wakeup

WakeupPollable Linux::Poller::_wakeup {}
private

Definition at line 124 of file Poller.h.


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