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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user