diff options
Diffstat (limited to 'src/3rdParty/efsw/platform/posix/ThreadImpl.hpp')
-rwxr-xr-x | src/3rdParty/efsw/platform/posix/ThreadImpl.hpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/3rdParty/efsw/platform/posix/ThreadImpl.hpp b/src/3rdParty/efsw/platform/posix/ThreadImpl.hpp new file mode 100755 index 0000000..ffc6da0 --- /dev/null +++ b/src/3rdParty/efsw/platform/posix/ThreadImpl.hpp | |||
@@ -0,0 +1,36 @@ | |||
1 | #ifndef EFSW_THREADIMPLPOSIX_HPP | ||
2 | #define EFSW_THREADIMPLPOSIX_HPP | ||
3 | |||
4 | #include <efsw/base.hpp> | ||
5 | |||
6 | #if defined( EFSW_PLATFORM_POSIX ) | ||
7 | |||
8 | #include <pthread.h> | ||
9 | |||
10 | namespace efsw { | ||
11 | |||
12 | class Thread; | ||
13 | |||
14 | namespace Platform { | ||
15 | |||
16 | class ThreadImpl { | ||
17 | public: | ||
18 | ThreadImpl( Thread* owner ); | ||
19 | |||
20 | void wait(); | ||
21 | |||
22 | void terminate(); | ||
23 | |||
24 | protected: | ||
25 | static void* entryPoint( void* userData ); | ||
26 | |||
27 | pthread_t mThread; | ||
28 | bool mIsActive; | ||
29 | }; | ||
30 | |||
31 | } // namespace Platform | ||
32 | } // namespace efsw | ||
33 | |||
34 | #endif | ||
35 | |||
36 | #endif | ||