#include <BCondInt.h>
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 |
| BCondInt::BCondInt | ( | ) |
| BCondInt::~BCondInt | ( | ) |
| 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.
pthread_cond_t BCondInt::ocond [private] |
pthread_mutex_t BCondInt::omutex [private] |
int BCondInt::ovalue [private] |
1.4.7