![]() |
Botcraft 1.21.5
|
Mutex protected reference, will be locked until destroyed. More...
#include <ScopeLockedWrapper.hpp>
Public Member Functions | |
ScopeLockedWrapper (T &val, Mutex &mutex) | |
T * | operator-> () const |
T & | operator* () const |
Private Attributes | |
T & | v |
Lock< Mutex > | lock |
Mutex protected reference, will be locked until destroyed.
T | Class to store |
Mutex | Mutex type to use |
Lock | Lock type to use |
Definition at line 16 of file ScopeLockedWrapper.hpp.
|
inline |
Definition at line 19 of file ScopeLockedWrapper.hpp.
|
inline |
Definition at line 22 of file ScopeLockedWrapper.hpp.
References Botcraft::Utilities::ScopeLockedWrapper< T, Mutex, Lock >::v.
|
inline |
Definition at line 21 of file ScopeLockedWrapper.hpp.
References Botcraft::Utilities::ScopeLockedWrapper< T, Mutex, Lock >::v.
|
private |
Definition at line 25 of file ScopeLockedWrapper.hpp.
|
private |
Definition at line 24 of file ScopeLockedWrapper.hpp.
Referenced by Botcraft::Utilities::ScopeLockedWrapper< T, Mutex, Lock >::operator*(), and Botcraft::Utilities::ScopeLockedWrapper< T, Mutex, Lock >::operator->().