This is a convenience class that makes it easy (and exception-safe) to lock a mutex in a scope. More...
#include <utils.h>
Public Member Functions | |
ScopeMutexLock (Mutex &imtx) | |
~ScopeMutexLock () | |
Protected Attributes | |
Mutex & | mtx |
This is a convenience class that makes it easy (and exception-safe) to lock a mutex in a scope.
Definition at line 665 of file utils.h.
frepple::utils::ScopeMutexLock::ScopeMutexLock | ( | Mutex & | imtx | ) | [inline] |
frepple::utils::ScopeMutexLock::~ScopeMutexLock | ( | ) | [inline] |
Mutex& frepple::utils::ScopeMutexLock::mtx [protected] |