voxelTerrain
 All Classes Functions Variables Typedefs Enumerations Pages
mutexLocker.hpp
1 #ifndef MUTEXLOCKER_HPP
2 #define MUTEXLOCKER_HPP
3 
4 #include "blub/async/mutex.hpp"
5 
6 
7 namespace blub
8 {
9 namespace async
10 {
11 
12 
14 {
15 public:
16  mutexLocker(mutex& toLock)
17  : m_mutex(toLock)
18  {
19  m_mutex.lock();
20  }
21  ~mutexLocker()
22  {
23  m_mutex.unlock();
24  }
25 private:
26  mutex &m_mutex;
27 };
28 
29 
30 }
31 }
32 
33 
34 #endif // MUTEXLOCKER_HPP
Definition: mutex.hpp:13
Definition: mutexLocker.hpp:13
Definition: deadlineTimer.hpp:10