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