|
Beamlib 3.3.4
This is the Beam C++ class library.
|
Thread conditional value. More...
#include <BCondInt.h>
Public Member Functions | |
| BCondInt () | |
| ~BCondInt () | |
| void | setValue (BInt value) |
| Set the value. Wakes waiting. | |
| BInt | value () const |
| Current value. | |
| BInt | increment (BInt v=1) |
| Increment. Wakes waiting. | |
| BInt | decrement (BInt v=1) |
| Decrement. Wakes waiting. | |
| Bool | waitMoreThanOrEqual (BInt v, Bool decrement=0, BTimeout timeoutUs=BTimeoutForever) |
| Wait until value is at least the value given. | |
| Bool | waitLessThanOrEqual (BInt v, Bool increment=0, BTimeout timeoutUs=BTimeoutForever) |
| Wait until value is equal to or below the value given. | |
| Bool | waitLessThan (BInt v, BTimeout timeoutUs=BTimeoutForever) |
| Wait until value is equal to or below the value given. | |
| void | operator+= (int v) |
| Add to value. Wakes waiting. | |
| void | operator-= (int v) |
| Subtract from value. Wakes waiting. | |
| void | operator++ (int) |
| Increment value. Wakes waiting. | |
| void | operator-- (int) |
| Decrement value. Wakes waiting. | |
Thread conditional value.
| BCondInt::BCondInt | ( | ) |
| BCondInt::~BCondInt | ( | ) |
| void BCondInt::setValue | ( | BInt | value | ) |
Set the value. Wakes waiting.
| BInt BCondInt::value | ( | ) | const |
Current value.
| Bool BCondInt::waitMoreThanOrEqual | ( | BInt | v, |
| Bool | decrement = 0, |
||
| BTimeout | timeoutUs = BTimeoutForever |
||
| ) |
Wait until value is at least the value given.
| Bool BCondInt::waitLessThanOrEqual | ( | BInt | v, |
| Bool | increment = 0, |
||
| BTimeout | timeoutUs = BTimeoutForever |
||
| ) |
Wait until value is equal to or below the value given.
| Bool BCondInt::waitLessThan | ( | BInt | v, |
| BTimeout | timeoutUs = BTimeoutForever |
||
| ) |
Wait until value is equal to or below the value given.
|
inline |
Add to value. Wakes waiting.
|
inline |
Subtract from value. Wakes waiting.
|
inline |
Increment value. Wakes waiting.
|
inline |
Decrement value. Wakes waiting.