FastEngine 0.9.4
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::AccessLock< TMutex > Class Template Reference

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
AccessLockoperator= (AccessLock const &)=delete
AccessLockoperator= (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

Detailed Description

template<class TMutex>
class fge::AccessLock< TMutex >

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&.

Template Parameters
TMutexThe mutex type

The documentation for this class was generated from the following file: