Beam-lib 2.15.1 |
BSemaphore Class Reference
Semaphore class. More...
#include <BSemaphore.h>
Public Member Functions | |
BSemaphore () | |
BSemaphore (const BSemaphore &semaphore) | |
~BSemaphore () | |
Bool | wait (BTimeout timeoutUs=BTimeoutForever) |
Wait for the semaphore. More... | |
void | set () |
Set the semaphore. More... | |
int | getValue () const |
BSemaphore & | operator= (const BSemaphore &semaphore) |
Private Attributes | |
sem_t | osema |
Detailed Description
Semaphore class.
Constructor & Destructor Documentation
◆ BSemaphore() [1/2]
BSemaphore::BSemaphore | ( | ) |
◆ BSemaphore() [2/2]
BSemaphore::BSemaphore | ( | const BSemaphore & | semaphore | ) |
◆ ~BSemaphore()
BSemaphore::~BSemaphore | ( | ) |
Member Function Documentation
◆ getValue()
int BSemaphore::getValue | ( | ) | const |
◆ operator=()
BSemaphore & BSemaphore::operator= | ( | const BSemaphore & | semaphore | ) |
◆ set()
void BSemaphore::set | ( | ) |
Set the semaphore.
◆ wait()
Bool BSemaphore::wait | ( | BTimeout | timeoutUs = BTimeoutForever | ) |
Wait for the semaphore.
Member Data Documentation
◆ osema
| private |
The documentation for this class was generated from the following files:
Generated by 1.8.14