An implementation of a semaphore.
More...
#include <sync.h>
An implementation of a semaphore.
See https://en.wikipedia.org/wiki/Semaphore_(programming)
Definition at line 307 of file sync.h.
◆ CSemaphore() [1/4]
CSemaphore::CSemaphore |
( |
int |
init | ) |
|
|
inlineexplicitnoexcept |
◆ CSemaphore() [2/4]
CSemaphore::CSemaphore |
( |
| ) |
|
|
delete |
◆ CSemaphore() [3/4]
◆ CSemaphore() [4/4]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ post()
void CSemaphore::post |
( |
| ) |
|
|
inlinenoexcept |
◆ try_wait()
bool CSemaphore::try_wait |
( |
| ) |
|
|
inlinenoexcept |
◆ wait()
void CSemaphore::wait |
( |
| ) |
|
|
inlinenoexcept |
◆ condition
std::condition_variable CSemaphore::condition |
|
private |
◆ mutex
std::mutex CSemaphore::mutex |
|
private |
◆ value
The documentation for this class was generated from the following file: