projects
/
shibboleth
/
cpp-xmltooling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
https://issues.shibboleth.net/jira/browse/CPPXT-70
[shibboleth/cpp-xmltooling.git]
/
xmltooling
/
util
/
Threads.h
diff --git
a/xmltooling/util/Threads.h
b/xmltooling/util/Threads.h
index
abb8c10
..
959031d
100644
(file)
--- a/
xmltooling/util/Threads.h
+++ b/
xmltooling/util/Threads.h
@@
-296,6
+296,15
@@
namespace xmltooling
}
/**
+ * Locks and wraps the designated mutex.
+ *
+ * @param mtx mutex to lock
+ */
+ Lock(Mutex& mtx) : mutex(&mtx) {
+ mtx.lock();
+ }
+
+ /**
* Unlocks the wrapped mutex.
*/
~Lock() {