Semi-safe reference for Mutex.
|
| | MutexRef (MutexParam resource) noexcept |
| | Constructs from MutexParam. More...
|
| |
| | MutexRef (MutexRaw resource) noexcept |
| | Constructs from MutexParam. More...
|
| |
|
| MutexRef (const MutexRef &other) noexcept |
| | Copy constructor.
|
| |
|
| ~MutexRef () |
| | Destructor.
|
| |
|
constexpr | Mutex (std::nullptr_t) noexcept |
| | Default ctor.
|
| |
| constexpr | Mutex (const MutexRaw resource) noexcept |
| | Constructs from MutexParam. More...
|
| |
|
constexpr | Mutex (const Mutex &other)=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 (const MutexRaw resource) noexcept |
| | Constructs from MutexParam. More...
|
| |
|
constexpr | Mutex (const Mutex &other)=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.
|
| |
|
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.
|
| |
|
constexpr | operator MutexParam () const noexcept |
| | Converts to MutexParam.
|
| |
| void | Destroy () |
| | Destroy a mutex created with Mutex.Mutex(). More...
|
| |
| void | Lock () |
| | Lock the mutex. More...
|
| |
| void | TryLock () |
| | Try to lock a mutex without blocking. More...
|
| |
| void | Unlock () |
| | Unlock the mutex. More...
|
| |
|
|
constexpr Mutex & | operator= (const Mutex &other) noexcept=default |
| | Assignment operator.
|
| |
◆ MutexRef() [1/2]
- Parameters
-
| resource | a MutexRaw or Mutex. |
This does not takes ownership!
◆ MutexRef() [2/2]
| SDL::MutexRef::MutexRef |
( |
MutexRaw |
resource | ) |
|
|
inlinenoexcept |
- Parameters
-
| resource | a MutexRaw or Mutex. |
This does not takes ownership!
◆ Mutex() [1/2]
◆ Mutex() [2/2]
| constexpr SDL::Mutex::Mutex |
( |
const MutexRaw |
resource | ) |
|
|
inlineexplicitconstexprnoexcept |
- Parameters
-
| resource | a MutexRaw to be wrapped. |
This assumes the ownership, call release() if you need to take back.
The documentation for this struct was generated from the following file: