|
Beamlib 3.5.2
This is the Beam C++ class library.
|
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 () |
| BSemaphoreCount & | operator= (const BSemaphoreCount &semaphore) |
Integer counting semaphore.
| BSemaphoreCount::BSemaphoreCount | ( | ) |
| BSemaphoreCount::BSemaphoreCount | ( | const BSemaphoreCount & | semaphore | ) |
| BSemaphoreCount::~BSemaphoreCount | ( | ) |
| void BSemaphoreCount::setValue | ( | BUInt | v | ) |
| void BSemaphoreCount::add | ( | int | v = 1 | ) |
Set the semaphore.
| Bool BSemaphoreCount::wait | ( | BUInt | v = 1, |
| BTimeout | timeoutUs = BTimeoutForever ) |
Wait for the semaphore.
| Bool BSemaphoreCount::take | ( | BUInt | v = 1, |
| BTimeout | timeoutUs = BTimeoutForever ) |
Take for the semaphore.
| BUInt BSemaphoreCount::value | ( | ) |
| BSemaphoreCount & BSemaphoreCount::operator= | ( | const BSemaphoreCount & | semaphore | ) |