#include <xmltooling/util/Threads.h>
Public Member Functions | |
Lock (Mutex *mtx) | |
Locks and wraps the designated mutex. | |
Lock (Mutex &mtx) | |
Locks and wraps the designated mutex. | |
Lock (const std::auto_ptr< Mutex > &mtx) | |
Locks and wraps the designated mutex. | |
Lock (const boost::scoped_ptr< Mutex > &mtx) | |
Locks and wraps the designated mutex. | |
~Lock () | |
Unlocks the wrapped mutex, if any. | |
Mutex * | release () |
Releases control of the original Mutex and returns it without unlocking it. |
xmltooling::Lock::Lock | ( | Mutex * | mtx | ) | [inline] |
Locks and wraps the designated mutex.
mtx | mutex to lock |
xmltooling::Lock::Lock | ( | Mutex & | mtx | ) | [inline] |
Locks and wraps the designated mutex.
mtx | mutex to lock |
xmltooling::Lock::Lock | ( | const std::auto_ptr< Mutex > & | mtx | ) | [inline] |
Locks and wraps the designated mutex.
mtx | mutex to lock |
xmltooling::Lock::Lock | ( | const boost::scoped_ptr< Mutex > & | mtx | ) | [inline] |
Locks and wraps the designated mutex.
mtx | mutex to lock |
Mutex* xmltooling::Lock::release | ( | ) | [inline] |