CyberEngineMkIII
|
A RAII locking mechanism. More...
#include <LockGuard.hpp>
Public Member Functions | |
LockGuard (Mutex &AMutex, const bool APreLocked=false) noexcept | |
Construct a LockGuard that will hold a lock on AMutex . More... | |
LockGuard (const LockGuard &)=delete | |
See Default Constructors and Destructor. | |
LockGuard (LockGuard &&AMove) noexcept | |
See Default Constructors and Destructor. | |
LockGuard & | operator= (LockGuard &&AMove) noexcept |
See Default Constructors and Destructor. | |
~LockGuard () | |
Destroys the LockGuard and unlocks the Mutex. | |
void | Release (void) noexcept |
Releases the lock on Mutex, this same LockGuard can never reaquire it. More... | |
Private Attributes | |
Mutex * | FMutex |
A reference to the owned Mutex. | |
A RAII locking mechanism.
Definition at line 7 of file LockGuard.hpp.
|
noexcept |
|
noexcept |