1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 06:23:14 +02:00

Switch Thread to use the C++11 equivalent, remove win32/pthread.

This commit is contained in:
Sadie Powell
2024-02-11 20:17:48 +00:00
parent 2c5b84bd1d
commit 274bb19d03
6 changed files with 19 additions and 184 deletions
+3 -1
View File
@@ -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
*/