Account
| Beamlib 3.3.4 This is the Beam C++ class library. |
Loading...
Searching...
No Matches
BCondWrap Class Reference
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. | |
| 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. | |
Detailed Description
Thread conditional unsigned 32 bit integer value that can wrap around.
Constructor & Destructor Documentation
◆ BCondWrap()
| BCondWrap::BCondWrap | ( | ) |
◆ ~BCondWrap()
| BCondWrap::~BCondWrap | ( | ) |
Member Function Documentation
◆ setValue()
| void BCondWrap::setValue | ( | uint32_t | value | ) |
Set the value. Wakes waiting.
◆ value()
| uint32_t BCondWrap::value | ( | ) |
Current 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+=()
| inline |
Add to value. Wakes waiting.
◆ operator-=()
| inline |
Subtract from value. Wakes waiting.
◆ operator++()
| inline |
Increment value. Wakes waiting.
◆ operator--()
| inline |
Decrement value. Wakes waiting.
The documentation for this class was generated from the following files:
Generated by
