diff options
Diffstat (limited to 'src/3rdParty/efsw/Mutex.cpp')
-rwxr-xr-x | src/3rdParty/efsw/Mutex.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/3rdParty/efsw/Mutex.cpp b/src/3rdParty/efsw/Mutex.cpp new file mode 100755 index 0000000..c961db1 --- /dev/null +++ b/src/3rdParty/efsw/Mutex.cpp | |||
@@ -0,0 +1,20 @@ | |||
1 | #include <efsw/Mutex.hpp> | ||
2 | #include <efsw/platform/platformimpl.hpp> | ||
3 | |||
4 | namespace efsw { | ||
5 | |||
6 | Mutex::Mutex() : mMutexImpl( new Platform::MutexImpl() ) {} | ||
7 | |||
8 | Mutex::~Mutex() { | ||
9 | efSAFE_DELETE( mMutexImpl ); | ||
10 | } | ||
11 | |||
12 | void Mutex::lock() { | ||
13 | mMutexImpl->lock(); | ||
14 | } | ||
15 | |||
16 | void Mutex::unlock() { | ||
17 | mMutexImpl->unlock(); | ||
18 | } | ||
19 | |||
20 | } // namespace efsw | ||