|
| constexpr | MutexRef (MutexRaw resource) noexcept |
| | Constructs from raw Mutex. More...
|
| |
| constexpr | MutexRef (const Mutex &resource) noexcept |
| | Constructs from Mutex. More...
|
| |
| constexpr | MutexRef (Mutex &&resource) noexcept |
| | Constructs from Mutex. More...
|
| |
|
constexpr | MutexRef (const MutexRef &other) noexcept |
| | Copy constructor.
|
| |
|
constexpr | MutexRef (MutexRef &&other) noexcept |
| | Move constructor.
|
| |
|
| ~MutexRef () |
| | Destructor.
|
| |
|
MutexRef & | operator= (const MutexRef &other) noexcept |
| | Assignment operator.
|
| |
|
constexpr | operator MutexRaw () const noexcept |
| | Converts to MutexRaw.
|
| |
|
constexpr | Mutex (std::nullptr_t) noexcept |
| | Default ctor.
|
| |
| constexpr | Mutex (MutexRaw resource) noexcept |
| | Constructs from raw Mutex. More...
|
| |
|
constexpr | Mutex (const Mutex &other) noexcept=delete |
| | Copy constructor.
|
| |
|
constexpr | Mutex (Mutex &&other) noexcept |
| | Move constructor.
|
| |
|
constexpr | Mutex (const MutexRef &other)=delete |
| |
|
constexpr | Mutex (MutexRef &&other)=delete |
| |
| | Mutex () |
| | Create a new mutex. More...
|
| |
|
constexpr | Mutex (std::nullptr_t) noexcept |
| | Default ctor.
|
| |
| constexpr | Mutex (MutexRaw resource) noexcept |
| | Constructs from raw Mutex. More...
|
| |
|
constexpr | Mutex (const Mutex &other) noexcept=delete |
| | Copy constructor.
|
| |
|
constexpr | Mutex (Mutex &&other) noexcept |
| | Move constructor.
|
| |
|
constexpr | Mutex (const MutexRef &other)=delete |
| |
|
constexpr | Mutex (MutexRef &&other)=delete |
| |
| | Mutex () |
| | Create a new mutex. More...
|
| |
|
| ~Mutex () |
| | Destructor.
|
| |
|
constexpr Mutex & | operator= (Mutex &&other) noexcept |
| | Assignment operator.
|
| |
|
Mutex & | operator= (const Mutex &other)=delete |
| | Assignment operator.
|
| |
|
constexpr MutexRaw | get () const noexcept |
| | Retrieves underlying MutexRaw.
|
| |
|
constexpr MutexRaw | release () noexcept |
| | Retrieves underlying MutexRaw and clear this.
|
| |
|
constexpr auto | operator<=> (const Mutex &other) const noexcept=default |
| | Comparison.
|
| |
|
constexpr | operator bool () const noexcept |
| | Converts to bool.
|
| |
| void | Destroy () |
| | Destroy a mutex created with CreateMutex(). More...
|
| |
| void | Lock () |
| | Lock the mutex. More...
|
| |
| bool | TryLock () |
| | Try to lock a mutex without blocking. More...
|
| |
| void | Unlock () |
| | Unlock the mutex. More...
|
| |
This does not take ownership!