senf::scheduler::detail::FdManager Class Reference

#include <senf/Scheduler/FdManager.hh>

Inheritance diagram for senf::scheduler::detail::FdManager:

Classes

struct  Event
 < Event baseclass More...
 

Public Types

enum  Events {
  EV_READ = Poller<Event>::EV_READ, EV_PRIO = Poller<Event>::EV_PRIO, EV_WRITE = Poller<Event>::EV_WRITE, EV_HUP = Poller<Event>::EV_HUP,
  EV_ERR = Poller<Event>::EV_ERR
}
 

Public Member Functions

bool set (int fd, int events, Event *entry)
 
void remove (int fd)
 
void timeout (int t)
 
int timeout () const
 
void processOnce ()
 Wait for events. More...
 
ClockService::clock_type const & eventTime () const
 Time of last event. More...
 
CyclicTimestamp const & eventTimestamp () const
 Cyclic Timestamp of last event (1ms precision) More...
 

Friends

void senf::scheduler::restart ()
 

Additional Inherited Members

- Protected Member Functions inherited from senf::singleton< FdManager >
 singleton ()
 
 ~singleton ()
 
- Static Protected Member Functions inherited from senf::singleton< FdManager >
static Self & instance ()
 
static bool alive ()
 

Detailed Description

Definition at line 36 of file FdManager.hh.

Member Enumeration Documentation

◆ Events

Enumerator
EV_READ 
EV_PRIO 
EV_WRITE 
EV_HUP 
EV_ERR 

Definition at line 46 of file FdManager.hh.

Member Function Documentation

◆ eventTime()

ClockService::clock_type const& senf::scheduler::detail::FdManager::eventTime ( ) const

Time of last event.

◆ eventTimestamp()

CyclicTimestamp const& senf::scheduler::detail::FdManager::eventTimestamp ( ) const

Cyclic Timestamp of last event (1ms precision)

◆ processOnce()

void senf::scheduler::detail::FdManager::processOnce ( )

Wait for events.

This call waits until at least one event is posted but no longer than the current timeout().

Definition at line 26 of file FdManager.cc.

◆ remove()

void senf::scheduler::detail::FdManager::remove ( int  fd)

◆ set()

bool senf::scheduler::detail::FdManager::set ( int  fd,
int  events,
Event entry 
)

◆ timeout() [1/2]

void senf::scheduler::detail::FdManager::timeout ( int  t)

◆ timeout() [2/2]

int senf::scheduler::detail::FdManager::timeout ( ) const

Friends And Related Function Documentation

◆ senf::scheduler::restart

void senf::scheduler::restart ( )
friend

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