summaryrefslogtreecommitdiff
path: root/src/mutexlocker.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mutexlocker.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mutexlocker.h b/src/mutexlocker.h
new file mode 100644
index 0000000..7c3c97e
--- /dev/null
+++ b/src/mutexlocker.h
@@ -0,0 +1,21 @@
1#ifndef BU_MUTEX_LOCKER_H
2#define BU_MUTEX_LOCKER_H
3
4namespace Bu
5{
6 class Mutex;
7 class MutexLocker
8 {
9 public:
10 MutexLocker( Mutex &mu );
11 virtual ~MutexLocker();
12
13 void unlock();
14 void relock();
15
16 private:
17 Mutex μ
18 };
19};
20
21#endif