|
CeresEngine 0.2.0
A game development framework
|
An object that holds onto a mutex lock for its lifetime and ensures that the mutex is unlocked when it is destructed. More...
#include <CeresEngine/Foundation/Threading/AsyncMutex.hpp>
Public Member Functions | |
| Lock (TAsyncMutex &mutex, std::adopt_lock_t) noexcept | |
| Lock (Lock &&other) noexcept | |
| Lock & | operator= (Lock &&other) noexcept |
| Lock (const Lock &other)=delete | |
| Lock & | operator= (const Lock &other)=delete |
| ~Lock () | |
| void | unlock () |
Private Member Functions | |
| void | release () |
Private Attributes | |
| TAsyncMutex * | mMutex |
An object that holds onto a mutex lock for its lifetime and ensures that the mutex is unlocked when it is destructed.
It is equivalent to a std::lock_guard object but requires that the result of co_await AsyncMutex::lock() is passed to the constructor rather than passing the AsyncMutex object itself.
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
delete |
|
inline |
|
delete |
|
inlinenoexcept |
|
inlineprivate |
|
inline |
|
private |