summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-11 20:17:48 +0000
committerSadie Powell <sadie@witchery.services>2024-02-11 20:35:21 +0000
commit274bb19d03698958e9ef9298ec29c8644a310daf (patch)
treed3698930e2395dbcc2bc892f8e984e153c03f772 /include
parent2c5b84bd1d7a846b10d302ef5da185a75ab2489c (diff)
Switch Thread to use the C++11 equivalent, remove win32/pthread.
Diffstat (limited to 'include')
-rw-r--r--include/threadengine.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/threadengine.h b/include/threadengine.h
index 7849ab89d..b240c1bbf 100644
--- a/include/threadengine.h
+++ b/include/threadengine.h
@@ -14,6 +14,8 @@
#include "sockets.h"
#include "extensible.h"
+#include <thread>
+
class CoreExport Thread
: public Pipe
, public Extensible
@@ -24,7 +26,7 @@ private:
public:
/* Handle for this thread */
- pthread_t handle;
+ std::thread *handle = nullptr;
/** Threads destructor
*/