frepple::utils::ScopeMutexLock Class Reference

This is a convenience class that makes it easy (and exception-safe) to lock a mutex in a scope. More...

#include <utils.h>

Inheritance diagram for frepple::utils::ScopeMutexLock:

Public Member Functions

 ScopeMutexLock (Mutex &imtx)
 
 ~ScopeMutexLock ()
 

Protected Attributes

Mutexmtx
 

Additional Inherited Members

- Protected Member Functions inherited from frepple::utils::NonCopyable
 NonCopyable ()
 
 ~NonCopyable ()
 

Detailed Description

This is a convenience class that makes it easy (and exception-safe) to lock a mutex in a scope.

Definition at line 3526 of file utils.h.

Constructor & Destructor Documentation

frepple::utils::ScopeMutexLock::ScopeMutexLock ( Mutex imtx)
inline

Definition at line 3531 of file utils.h.

frepple::utils::ScopeMutexLock::~ScopeMutexLock ( )
inline

Definition at line 3532 of file utils.h.

Member Data Documentation

Mutex& frepple::utils::ScopeMutexLock::mtx
protected

Definition at line 3529 of file utils.h.


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