Thread conditional unsigned 32 bit integer value that can wrap around.
More...
#include <BCondInt.h>
|
| | BCondWrap () |
| |
| | ~BCondWrap () |
| |
| void | setValue (uint32_t value) |
| | Set the value. Wakes waiting.
|
| |
| uint32_t | value () |
| | Current value.
|
| |
| uint32_t | increment (uint32_t v=1) |
| | Increment. Wakes waiting.
|
| |
| uint32_t | decrement (uint32_t v=1) |
| | Decrement. Wakes waiting.
|
| |
| int | waitMoreThanOrEqual (uint32_t v, uint32_t decrement=0, uint32_t timeOutUs=0) |
| | Wait until value is at least the value given.
|
| |
| int | waitLessThanOrEqual (uint32_t v, uint32_t increment=0, uint32_t timeOutUs=0) |
| | Wait until value is equal to or below the value given.
|
| |
| int | waitLessThan (uint32_t v, uint32_t timeOutUs=0) |
| | 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 unsigned 32 bit integer value that can wrap around.
◆ BCondWrap()
◆ ~BCondWrap()
| BCondWrap::~BCondWrap |
( |
| ) |
|
◆ setValue()
| void BCondWrap::setValue |
( |
uint32_t | value | ) |
|
Set the value. Wakes waiting.
◆ value()
| uint32_t BCondWrap::value |
( |
| ) |
|
◆ increment()
| uint32_t BCondWrap::increment |
( |
uint32_t | v = 1 | ) |
|
Increment. Wakes waiting.
◆ decrement()
| uint32_t BCondWrap::decrement |
( |
uint32_t | v = 1 | ) |
|
Decrement. Wakes waiting.
◆ waitMoreThanOrEqual()
| int BCondWrap::waitMoreThanOrEqual |
( |
uint32_t | v, |
|
|
uint32_t | decrement = 0, |
|
|
uint32_t | timeOutUs = 0 ) |
Wait until value is at least the value given.
◆ waitLessThanOrEqual()
| 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.
◆ waitLessThan()
| int BCondWrap::waitLessThan |
( |
uint32_t | v, |
|
|
uint32_t | timeOutUs = 0 ) |
Wait until value is equal to or below the value given.
◆ operator+=()
| void BCondWrap::operator+= |
( |
int | v | ) |
|
|
inline |
Add to value. Wakes waiting.
◆ operator-=()
| void BCondWrap::operator-= |
( |
int | v | ) |
|
|
inline |
Subtract from value. Wakes waiting.
◆ operator++()
| void BCondWrap::operator++ |
( |
int | | ) |
|
|
inline |
Increment value. Wakes waiting.
◆ operator--()
| void BCondWrap::operator-- |
( |
int | | ) |
|
|
inline |
Decrement value. Wakes waiting.
The documentation for this class was generated from the following files: