Account
LibTmsApi 2.3.0 |
BCondInt Class Reference
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. | |
Private Attributes | |
pthread_mutex_t | omutex |
pthread_cond_t | ocond |
BInt | ovalue |
Detailed Description
Thread conditional value.
Constructor & Destructor Documentation
◆ BCondInt()
BCondInt::BCondInt | ( | ) |
◆ ~BCondInt()
BCondInt::~BCondInt | ( | ) |
Member Function Documentation
◆ decrement()
◆ increment()
◆ operator++()
| inline |
Increment value. Wakes waiting.
◆ operator+=()
| inline |
Add to value. Wakes waiting.
◆ operator--()
| inline |
Decrement value. Wakes waiting.
◆ operator-=()
| inline |
Subtract from value. Wakes waiting.
◆ setValue()
void BCondInt::setValue | ( | BInt | value | ) |
Set the value. Wakes waiting.
◆ value()
BInt BCondInt::value | ( | ) | const |
Current value.
◆ waitLessThan()
Bool BCondInt::waitLessThan | ( | BInt | v, |
BTimeout | timeoutUs = BTimeoutForever | ||
) |
Wait until value is equal to or below the value given.
◆ waitLessThanOrEqual()
Bool BCondInt::waitLessThanOrEqual | ( | BInt | v, |
Bool | increment = 0 , | ||
BTimeout | timeoutUs = BTimeoutForever | ||
) |
Wait until value is equal to or below the value given.
◆ waitMoreThanOrEqual()
Bool BCondInt::waitMoreThanOrEqual | ( | BInt | v, |
Bool | decrement = 0 , | ||
BTimeout | timeoutUs = BTimeoutForever | ||
) |
Wait until value is at least the value given.
Member Data Documentation
◆ ocond
| private |
◆ omutex
| private |
◆ ovalue
| private |
The documentation for this class was generated from the following files:
- /src/cern/tms/tms/beam/libBeam/BCondInt.h
- /src/cern/tms/tms/beam/libBeam/BCondInt.cpp
Generated by 1.9.7