diff options
Diffstat (limited to 'src/3rdParty/efsw/platform/posix/ThreadImpl.hpp')
-rw-r--r--[-rwxr-xr-x] | src/3rdParty/efsw/platform/posix/ThreadImpl.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/3rdParty/efsw/platform/posix/ThreadImpl.hpp b/src/3rdParty/efsw/platform/posix/ThreadImpl.hpp index ffc6da0..2e02f9a 100755..100644 --- a/src/3rdParty/efsw/platform/posix/ThreadImpl.hpp +++ b/src/3rdParty/efsw/platform/posix/ThreadImpl.hpp | |||
@@ -5,6 +5,7 @@ | |||
5 | 5 | ||
6 | #if defined( EFSW_PLATFORM_POSIX ) | 6 | #if defined( EFSW_PLATFORM_POSIX ) |
7 | 7 | ||
8 | #include <efsw/Atomic.hpp> | ||
8 | #include <pthread.h> | 9 | #include <pthread.h> |
9 | 10 | ||
10 | namespace efsw { | 11 | namespace efsw { |
@@ -15,7 +16,9 @@ namespace Platform { | |||
15 | 16 | ||
16 | class ThreadImpl { | 17 | class ThreadImpl { |
17 | public: | 18 | public: |
18 | ThreadImpl( Thread* owner ); | 19 | explicit ThreadImpl( efsw::Thread* owner ); |
20 | |||
21 | ~ThreadImpl(); | ||
19 | 22 | ||
20 | void wait(); | 23 | void wait(); |
21 | 24 | ||
@@ -25,7 +28,7 @@ class ThreadImpl { | |||
25 | static void* entryPoint( void* userData ); | 28 | static void* entryPoint( void* userData ); |
26 | 29 | ||
27 | pthread_t mThread; | 30 | pthread_t mThread; |
28 | bool mIsActive; | 31 | Atomic<bool> mIsActive; |
29 | }; | 32 | }; |
30 | 33 | ||
31 | } // namespace Platform | 34 | } // namespace Platform |