diff options
Diffstat (limited to 'src/3rdParty/efsw/Mutex.hpp')
-rwxr-xr-x | src/3rdParty/efsw/Mutex.hpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/3rdParty/efsw/Mutex.hpp b/src/3rdParty/efsw/Mutex.hpp new file mode 100755 index 0000000..d98ad17 --- /dev/null +++ b/src/3rdParty/efsw/Mutex.hpp | |||
@@ -0,0 +1,31 @@ | |||
1 | #ifndef EFSW_MUTEX_HPP | ||
2 | #define EFSW_MUTEX_HPP | ||
3 | |||
4 | #include <efsw/base.hpp> | ||
5 | |||
6 | namespace efsw { | ||
7 | |||
8 | namespace Platform { | ||
9 | class MutexImpl; | ||
10 | } | ||
11 | |||
12 | /** Simple mutex class */ | ||
13 | class Mutex { | ||
14 | public: | ||
15 | Mutex(); | ||
16 | |||
17 | ~Mutex(); | ||
18 | |||
19 | /** Lock the mutex */ | ||
20 | void lock(); | ||
21 | |||
22 | /** Unlock the mutex */ | ||
23 | void unlock(); | ||
24 | |||
25 | private: | ||
26 | Platform::MutexImpl* mMutexImpl; | ||
27 | }; | ||
28 | |||
29 | } // namespace efsw | ||
30 | |||
31 | #endif | ||