BEventPipe Class Reference

This class provides a base interface for sending events via a pipe. 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

 BEventPipe ()
 ~BEventPipe ()
void clear ()
 Clear events pending.
BError sendEvent (BEvent *event)
 Send an event.
BError getEvent (BEvent *event, int timeOutUs=-1)
 Receive the event.
int getReceiveFd ()
 returns the receive file descriptor for the poll system call

Private Attributes

int ofds [2]
 File descriptors for pipe.


Detailed Description

This class provides a base interface for sending events via a pipe. This allows threads to send events that can be picked up by the poll system call.


Constructor & Destructor Documentation

BEventPipe::BEventPipe (  ) 

BEventPipe::~BEventPipe (  ) 


Member Function Documentation

void BEventPipe::clear (  ) 

Clear events pending.

BError BEventPipe::getEvent ( BEvent event,
int  timeOutUs = -1 
)

Receive the event.

int BEventPipe::getReceiveFd (  ) 

returns the receive file descriptor for the poll system call

BError BEventPipe::sendEvent ( BEvent event  ) 

Send an event.


Member Data Documentation

int BEventPipe::ofds[2] [private]

File descriptors for pipe.


The documentation for this class was generated from the following files:
Generated on Thu Nov 4 09:45:23 2010 for LibBeamApi by  doxygen 1.4.7