ArmSys Support
ArmsysApi  0.12.18

BCondInt class. More...

#include <BCondInt.h>

Public Member Functions

 BCondInt ()
 
 ~BCondInt ()
 
void setValue (BInt value)
 Set the value. Wakes waiting. More...
 
BInt value ()
 Current value. More...
 
BInt increment (BInt v=1)
 Increment. Wakes waiting. More...
 
BInt decrement (BInt v=1)
 Decrement. Wakes waiting. More...
 
Bool waitMoreThanOrEqual (BInt v, Bool decrement=0, BTimeout timeoutUs=BTimeoutForever)
 Wait until value is at least the value given. More...
 
Bool waitLessThanOrEqual (BInt v, Bool increment=0, BTimeout timeoutUs=BTimeoutForever)
 Wait until value is equal to or below the value given. More...
 
Bool waitLessThan (BInt v, BTimeout timeoutUs=BTimeoutForever)
 Wait until value is equal to or below the value given. More...
 
void operator+= (BInt v)
 Add to value. Wakes waiting. More...
 
void operator-= (BInt v)
 Subtract from value. Wakes waiting. More...
 
void operator++ (int)
 Increment value. Wakes waiting. More...
 
void operator-- (int)
 Decrement value. Wakes waiting. More...
 

Private Attributes

BMutex omutex
 
BSemaphore osema
 
BInt ovalue
 

Detailed Description

BCondInt class.

Constructor & Destructor Documentation

◆ BCondInt()

BCondInt::BCondInt ( )

◆ ~BCondInt()

BCondInt::~BCondInt ( )

Member Function Documentation

◆ decrement()

BInt BCondInt::decrement ( BInt  v = 1)

Decrement. Wakes waiting.

◆ increment()

BInt BCondInt::increment ( BInt  v = 1)

Increment. Wakes waiting.

◆ operator++()

void BCondInt::operator++ ( int  )
inline

Increment value. Wakes waiting.

◆ operator+=()

void BCondInt::operator+= ( BInt  v)
inline

Add to value. Wakes waiting.

◆ operator--()

void BCondInt::operator-- ( int  )
inline

Decrement value. Wakes waiting.

◆ operator-=()

void BCondInt::operator-= ( BInt  v)
inline

Subtract from value. Wakes waiting.

◆ setValue()

void BCondInt::setValue ( BInt  value)

Set the value. Wakes waiting.

◆ value()

BInt BCondInt::value ( )

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

◆ omutex

BMutex BCondInt::omutex
private

◆ osema

BSemaphore BCondInt::osema
private

◆ ovalue

BInt BCondInt::ovalue
private

The documentation for this class was generated from the following files: