Beam-lib 2.15.1 |
BSemaphoreCount Class Reference
#include <BSemaphore.h>
Public Member Functions | |
BSemaphoreCount () | |
BSemaphoreCount (const BSemaphoreCount &semaphore) | |
~BSemaphoreCount () | |
void | setValue (BUInt v) |
void | add (int v=1) |
Set the semaphore. More... | |
Bool | wait (BUInt v=1, BTimeout timeoutUs=BTimeoutForever) |
Wait for the semaphore. More... | |
Bool | take (BUInt v=1, BTimeout timeoutUs=BTimeoutForever) |
Take for the semaphore. More... | |
BUInt | value () |
BSemaphoreCount & | operator= (const BSemaphoreCount &semaphore) |
Private Attributes | |
BMutex | olock |
BSemaphore | osema |
volatile BUInt | ovalue |
Constructor & Destructor Documentation
◆ BSemaphoreCount() [1/2]
BSemaphoreCount::BSemaphoreCount | ( | ) |
◆ BSemaphoreCount() [2/2]
BSemaphoreCount::BSemaphoreCount | ( | const BSemaphoreCount & | semaphore | ) |
◆ ~BSemaphoreCount()
BSemaphoreCount::~BSemaphoreCount | ( | ) |
Member Function Documentation
◆ add()
void BSemaphoreCount::add | ( | int | v = 1 | ) |
Set the semaphore.
◆ operator=()
BSemaphoreCount & BSemaphoreCount::operator= | ( | const BSemaphoreCount & | semaphore | ) |
◆ setValue()
void BSemaphoreCount::setValue | ( | BUInt | v | ) |
◆ take()
Bool BSemaphoreCount::take | ( | BUInt | v = 1 , |
BTimeout | timeoutUs = BTimeoutForever | ||
) |
Take for the semaphore.
◆ value()
BUInt BSemaphoreCount::value | ( | ) |
◆ wait()
Bool BSemaphoreCount::wait | ( | BUInt | v = 1 , |
BTimeout | timeoutUs = BTimeoutForever | ||
) |
Wait for the semaphore.
Member Data Documentation
◆ olock
| private |
◆ osema
| private |
◆ ovalue
| private |
The documentation for this class was generated from the following files:
Generated by 1.8.14