LibBeamApi  1.3.0
Public Member Functions | Private Attributes | List of all members
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>

Public Member Functions

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

Private Attributes

int ofds [2]
 File descriptors for pipe. More...
 

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: