|
CeresEngine 0.2.0
A game development framework
|
A helper class that acquires a temporary lock and overloads operator-> to allow access to the object.
More...
#include <CeresEngine/Foundation/Threading/Threading.hpp>
Public Member Functions | |
| TemporaryLock (LockedObject< T, Mutex > &owner) noexcept | |
Creates a new temporary lock object for owner. | |
| U * | operator-> () const noexcept |
Access the LockedObject value from a temporary lock. | |
| U & | operator* () const noexcept |
Access the LockedObject value from a temporary lock. | |
| operator bool () const noexcept | |
| Checks if the lock is owned. | |
Private Attributes | |
| LockedObject< T, Mutex > & | mOwner |
| The temporary lock owner,. | |
| UniqueLock< Mutex > | mLock |
| The temporary lock object. | |
A helper class that acquires a temporary lock and overloads operator-> to allow access to the object.
|
inlineexplicitnoexcept |
Creates a new temporary lock object for owner.
|
inlineexplicitnoexcept |
Checks if the lock is owned.
|
inlinenoexcept |
Access the LockedObject value from a temporary lock.
|
inlinenoexcept |
Access the LockedObject value from a temporary lock.
|
private |
The temporary lock object.
|
private |
The temporary lock owner,.