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