1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| #include <efsw/Mutex.hpp>
| #include <efsw/platform/platformimpl.hpp>
|
| namespace efsw {
|
| Mutex::Mutex() :
| mMutexImpl( new Platform::MutexImpl() )
| {
| }
|
| Mutex::~Mutex()
| {
| efSAFE_DELETE( mMutexImpl );
| }
|
| void Mutex::lock()
| {
| mMutexImpl->lock();
| }
|
| void Mutex::unlock()
| {
| mMutexImpl->unlock();
| }
|
| }
|
|