diff options
Diffstat (limited to '')
-rw-r--r-- | src/itolocker.cpp | 13 |
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 | |||
4 | Bu::ItoLocker::ItoLocker( Bu::ItoMutex &mu ) : | ||
5 | mu( mu ) | ||
6 | { | ||
7 | mu.lock(); | ||
8 | } | ||
9 | |||
10 | Bu::ItoLocker::~ItoLocker() | ||
11 | { | ||
12 | mu.unlock(); | ||
13 | } | ||