RAII wrapper for a mutex lock.
More...
#include <xmltooling/util/Threads.h>
RAII wrapper for a mutex lock.
xmltooling::Lock::Lock |
( |
Mutex * |
mtx | ) |
|
|
inline |
Locks and wraps the designated mutex.
- Parameters
-
xmltooling::Lock::Lock |
( |
Mutex & |
mtx | ) |
|
|
inline |
Locks and wraps the designated mutex.
- Parameters
-
xmltooling::Lock::Lock |
( |
const boost::scoped_ptr< Mutex > & |
mtx | ) |
|
|
inline |
Locks and wraps the designated mutex.
- Parameters
-
Mutex* xmltooling::Lock::release |
( |
| ) |
|
|
inline |
Releases control of the original Mutex and returns it without unlocking it.
- Returns
- the original, locked Mutex
The documentation for this class was generated from the following file: