Account
LibTmsApi 2.3.0 |
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. | |
void | set () |
Set the semaphore. | |
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:
- /src/cern/tms/tms/beam/libBeam/BSemaphore.h
- /src/cern/tms/tms/beam/libBeam/BSemaphore.cpp
Generated by 1.9.7