summaryrefslogtreecommitdiff
path: root/src/itolocker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/itolocker.cpp')
-rw-r--r--src/itolocker.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/itolocker.cpp b/src/itolocker.cpp
new file mode 100644
index 0000000..17e97fd
--- /dev/null
+++ b/src/itolocker.cpp
@@ -0,0 +1,13 @@
1#include "bu/itolocker.h"
2#include "bu/itomutex.h"
3
4Bu::ItoLocker::ItoLocker( Bu::ItoMutex &mu ) :
5 mu( mu )
6{
7 mu.lock();
8}
9
10Bu::ItoLocker::~ItoLocker()
11{
12 mu.unlock();
13}