ANNA Suite  2020b
Multipurpose development suite for Telco applications
Public Member Functions | List of all members
anna::comm::Poll Class Reference

#include <Poll.hpp>

Public Member Functions

 Poll ()
 
void setTimeout (const Millisecond &timeout)
 
void waitMessage () noexcept(false)
 
int fetch ()
 
bool isEmpty () const
 
void clear ()
 
void insert (const int fd)
 
void erase (const int fd)
 

Detailed Description

Clase que asegura que el comm::Reader no se quedara esperando indefinidamente a que un determinado mensaje haya sido tratado y mantiene la integridad de forma ya que asegura que el tratamiento de un mensaje solo tendra un unico signal enviado hacia el comm::Reader.

Constructor & Destructor Documentation

◆ Poll()

anna::comm::Poll::Poll ( )
inline
33  : a_ptrTimeout(NULL), a_minfd(INT_MAX), a_maxfd(0) {
34  FD_ZERO(&a_fdmask);
35  FD_ZERO(&a_fdset);
36  }
Here is the call graph for this function:

Member Function Documentation

◆ clear()

void anna::comm::Poll::clear ( )
inline
43 { a_maxfd = 0; a_minfd = INT_MAX; FD_ZERO(&a_fdmask); FD_ZERO(&a_fdset);}
Here is the call graph for this function:

◆ erase()

void anna::comm::Poll::erase ( const int  fd)

◆ fetch()

int anna::comm::Poll::fetch ( )

◆ insert()

void anna::comm::Poll::insert ( const int  fd)

◆ isEmpty()

bool anna::comm::Poll::isEmpty ( ) const
inline
42 { return a_pollr <= 0; }

◆ setTimeout()

void anna::comm::Poll::setTimeout ( const Millisecond timeout)

◆ waitMessage()

void anna::comm::Poll::waitMessage ( )
noexcept

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