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

void BCondInt::setValue ( int  value  ) 

Set value.

int BCondInt::increment (  ) 

Increment.

int BCondInt::decrement (  ) 

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.

int BCondInt::tryNotZeroDecrement (  ) 

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

int BCondInt::timedWait ( int  timeOutUs  ) 

Wait for the condition, with timeout.

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

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


Member Data Documentation

pthread_mutex_t BCondInt::omutex [private]

pthread_cond_t BCondInt::ocond [private]

int BCondInt::ovalue [private]


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

Generated on Thu Dec 18 13:21:07 2008 for LibTmsApi by  doxygen 1.5.6