![]() |
FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
|
Class that lock a mutex and unlock it only when the object is destroyed. More...
#include <C_accessLock.hpp>
Public Member Functions | |
AccessLock (TMutex &mutex) | |
AccessLock (AccessLock const &)=delete | |
AccessLock (AccessLock &&) noexcept=delete | |
AccessLock & | operator= (AccessLock const &)=delete |
AccessLock & | operator= (AccessLock &&) noexcept=delete |
bool | operator== (TMutex const &r) const |
bool | operator!= (TMutex const &r) const |
void | throwIfDifferent (TMutex const &r) const |
AccessLock< TMutex > * | operator& ()=delete |
Class that lock a mutex and unlock it only when the object is destroyed.
This is a strict class that lock a mutex and unlock it only when the object is destroyed and disallow copy, move operations and even the unary operator&.
TMutex | The mutex type |