BEventInt Class Reference

This class provides an interface for sending simple integer events via a file descriptor. This allows threads to send events that can be picked up by the poll system call. More...

#include <BEvent.h>

List of all members.

Public Member Functions

 BEventInt ()
 ~BEventInt ()
void clear ()
 Clear events pending.
BError sendEvent (int event)
 Send an event.
BError getEvent (int &event, int timeOutUs=-1)
 Receive the event.
int getFd ()

Private Attributes

int ofds [2]
 File descriptors for pipe.


Detailed Description

This class provides an interface for sending simple integer events via a file descriptor. This allows threads to send events that can be picked up by the poll system call.


Constructor & Destructor Documentation

BEventInt::BEventInt (  ) 

BEventInt::~BEventInt (  ) 


Member Function Documentation

void BEventInt::clear (  ) 

Clear events pending.

BError BEventInt::getEvent ( int &  event,
int  timeOutUs = -1 
)

Receive the event.

int BEventInt::getFd (  ) 

BError BEventInt::sendEvent ( int  event  ) 

Send an event.


Member Data Documentation

int BEventInt::ofds[2] [private]

File descriptors for pipe.


The documentation for this class was generated from the following files:
Generated on Wed Jan 27 10:58:44 2010 for LibBeamApi by  doxygen 1.4.7