BDS Public
Beamlib 3.3.4
This is the Beam C++ class library.
Loading...
Searching...
No Matches
BSemaphoreCount Class Reference

Integer counting semaphore. More...

#include <BSemaphore.h>

Public Member Functions

 BSemaphoreCount ()
 
 BSemaphoreCount (const BSemaphoreCount &semaphore)
 
 ~BSemaphoreCount ()
 
void setValue (BUInt v)
 
void add (int v=1)
 Set the semaphore.
 
Bool wait (BUInt v=1, BTimeout timeoutUs=BTimeoutForever)
 Wait for the semaphore.
 
Bool take (BUInt v=1, BTimeout timeoutUs=BTimeoutForever)
 Take for the semaphore.
 
BUInt value ()
 
BSemaphoreCountoperator= (const BSemaphoreCount &semaphore)
 

Detailed Description

Integer counting semaphore.

Constructor & Destructor Documentation

◆ BSemaphoreCount() [1/2]

BSemaphoreCount::BSemaphoreCount ( )

◆ BSemaphoreCount() [2/2]

BSemaphoreCount::BSemaphoreCount ( const BSemaphoreCount semaphore)

◆ ~BSemaphoreCount()

BSemaphoreCount::~BSemaphoreCount ( )

Member Function Documentation

◆ setValue()

void BSemaphoreCount::setValue ( BUInt  v)

◆ add()

void BSemaphoreCount::add ( int  v = 1)

Set the semaphore.

◆ wait()

Bool BSemaphoreCount::wait ( BUInt  v = 1,
BTimeout  timeoutUs = BTimeoutForever 
)

Wait for the semaphore.

◆ take()

Bool BSemaphoreCount::take ( BUInt  v = 1,
BTimeout  timeoutUs = BTimeoutForever 
)

Take for the semaphore.

◆ value()

BUInt BSemaphoreCount::value ( )

◆ operator=()

BSemaphoreCount & BSemaphoreCount::operator= ( const BSemaphoreCount semaphore)

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