Counting semaphore synchronization primitive.
More...
#include <semaphore.h>
|
| std::unique_ptr< Impl > | impl_ |
Counting semaphore synchronization primitive.
Definition at line 13 of file semaphore.h.
◆ Semaphore() [1/3]
| contur::Semaphore::Semaphore |
( |
std::size_t | initialCount = 1, |
|
|
std::size_t | maxCount = 1 ) |
|
explicit |
Constructs semaphore with initial and maximum count.
◆ ~Semaphore()
| contur::Semaphore::~Semaphore |
( |
| ) |
|
|
override |
◆ Semaphore() [2/3]
| contur::Semaphore::Semaphore |
( |
const Semaphore & | | ) |
|
|
delete |
◆ Semaphore() [3/3]
| contur::Semaphore::Semaphore |
( |
Semaphore && | | ) |
|
|
noexcept |
◆ acquire()
◆ count()
| std::size_t contur::Semaphore::count |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ maxCount()
| std::size_t contur::Semaphore::maxCount |
( |
| ) |
const |
|
nodiscardnoexcept |
Configured maximum count.
◆ name()
| std::string_view contur::Semaphore::name |
( |
| ) |
const |
|
nodiscardoverridevirtualnoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ release()
◆ tryAcquire()
◆ waitingCount()
| std::size_t contur::Semaphore::waitingCount |
( |
| ) |
const |
|
nodiscardnoexcept |
Number of waiting processes.
◆ impl_
| std::unique_ptr<Impl> contur::Semaphore::impl_ |
|
private |
The documentation for this class was generated from the following file: