voxelTerrain
Main Page
Classes
Files
Examples
File List
All
Classes
Functions
Variables
Typedefs
Enumerations
Pages
modules
async
source
blub
async
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
13
class
mutexLocker
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
blub::async::mutex
Definition:
mutex.hpp:13
blub::async::mutexLocker
Definition:
mutexLocker.hpp:13
blub
Definition:
deadlineTimer.hpp:10
Generated on Sat Jan 31 2015 13:35:22 for voxelTerrain by
1.8.8