aboutsummaryrefslogtreecommitdiff
path: root/src/3rdParty/efsw/platform/posix/ThreadImpl.hpp
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-04-09 17:40:13 +0800
committerLi Jin <dragon-fly@qq.com>2025-04-09 17:40:13 +0800
commit9750786a5c03b5ce3ea22b240d1b3cd34990856b (patch)
treee495e43245e1bacc86d33142af202613a82a40c1 /src/3rdParty/efsw/platform/posix/ThreadImpl.hpp
parent571fb952b99e580a0381f539885f8f175e2ec3b0 (diff)
downloadyuescript-9750786a5c03b5ce3ea22b240d1b3cd34990856b.tar.gz
yuescript-9750786a5c03b5ce3ea22b240d1b3cd34990856b.tar.bz2
yuescript-9750786a5c03b5ce3ea22b240d1b3cd34990856b.zip
Updated efsw. Fixed issue #204.
Diffstat (limited to 'src/3rdParty/efsw/platform/posix/ThreadImpl.hpp')
-rw-r--r--[-rwxr-xr-x]src/3rdParty/efsw/platform/posix/ThreadImpl.hpp7
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
10namespace efsw { 11namespace efsw {
@@ -15,7 +16,9 @@ namespace Platform {
15 16
16class ThreadImpl { 17class 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