Critical-section adapter over a synchronization primitive.
More...
#include <critical_section.h>
|
| std::unique_ptr< Impl > | impl_ |
Critical-section adapter over a synchronization primitive.
Definition at line 13 of file critical_section.h.
◆ CriticalSection() [1/3]
| contur::CriticalSection::CriticalSection |
( |
std::unique_ptr< ISyncPrimitive > | primitive = nullptr | ) |
|
|
explicit |
Constructs a critical section using provided primitive.
If primitive is null, an internal Mutex is used.
◆ ~CriticalSection()
| contur::CriticalSection::~CriticalSection |
( |
| ) |
|
|
override |
◆ CriticalSection() [2/3]
| contur::CriticalSection::CriticalSection |
( |
const CriticalSection & | | ) |
|
|
delete |
◆ CriticalSection() [3/3]
| contur::CriticalSection::CriticalSection |
( |
CriticalSection && | | ) |
|
|
noexcept |
◆ acquire()
◆ enter()
◆ leave()
◆ name()
| std::string_view contur::CriticalSection::name |
( |
| ) |
const |
|
nodiscardoverridevirtualnoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ release()
◆ tryAcquire()
◆ tryEnter()
◆ impl_
| std::unique_ptr<Impl> contur::CriticalSection::impl_ |
|
private |
The documentation for this class was generated from the following file: