diff options
author | Li Jin <dragon-fly@qq.com> | 2022-11-15 17:23:46 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-11-15 17:52:09 +0800 |
commit | 94f8330613877b3582d32bd11abd83a97b4399ad (patch) | |
tree | 5359de314be1ebde17f8d1e48632a97d18f9e50f /src/3rdParty/efsw/Mutex.cpp | |
parent | 60f8f00a022ac08701792b2897b72d8c99b50f52 (diff) | |
download | yuescript-94f8330613877b3582d32bd11abd83a97b4399ad.tar.gz yuescript-94f8330613877b3582d32bd11abd83a97b4399ad.tar.bz2 yuescript-94f8330613877b3582d32bd11abd83a97b4399ad.zip |
adding -w option to Yuescript tool.
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 | ||