BCondInt Class Reference

Thread conditional integer. More...

#include <BCondInt.h>

List of all members.

Public Member Functions

 BCondInt ()
 ~BCondInt ()
void setValue (int value)
 Set value.
int increment ()
 Increment.
int decrement ()
 Decrement.
int value ()
 Current value.
int wait ()
 Wait until value is 0.
int waitIncrement (int timeOutUs=0)
 Wait until value is 0 then increment.
int waitNotZero ()
 Wait until value is not 0.
int waitNotZeroDecrement ()
 Wait until value is not 0 and then decrement.
int tryNotZeroDecrement ()
 Test if value is not 0, if not zero then decrement.
int timedWait (int timeOutUs)
 Wait for the condition, with timeout.
void operator++ (int)
void operator-- (int)

Private Attributes

pthread_mutex_t omutex
pthread_cond_t ocond
int ovalue


Detailed Description

Thread conditional integer.


Constructor & Destructor Documentation

BCondInt::BCondInt (  ) 

BCondInt::~BCondInt (  ) 


Member Function Documentation

int BCondInt::decrement (  ) 

Decrement.

int BCondInt::increment (  ) 

Increment.

void BCondInt::operator++ ( int   )  [inline]

void BCondInt::operator-- ( int   )  [inline]

void BCondInt::setValue ( int  value  ) 

Set value.

int BCondInt::timedWait ( int  timeOutUs  ) 

Wait for the condition, with timeout.

int BCondInt::tryNotZeroDecrement (  ) 

Test if value is not 0, if not zero then decrement.

int BCondInt::value (  ) 

Current value.

int BCondInt::wait (  ) 

Wait until value is 0.

int BCondInt::waitIncrement ( int  timeOutUs = 0  ) 

Wait until value is 0 then increment.

int BCondInt::waitNotZero (  ) 

Wait until value is not 0.

int BCondInt::waitNotZeroDecrement (  ) 

Wait until value is not 0 and then decrement.


Member Data Documentation

pthread_cond_t BCondInt::ocond [private]

pthread_mutex_t BCondInt::omutex [private]

int BCondInt::ovalue [private]


The documentation for this class was generated from the following files:
Generated on Fri Jul 16 11:26:35 2010 for LibBeamApi by  doxygen 1.4.7