X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fthread.h;h=80363fa7f187aac9c65cec13314a879b2c4807a9;hb=830ff985dbea8102796d60af3109936791fc8b28;hp=cc490639ed4f4c8bb23a400166a840fa10a9ec86;hpb=103b368ab7f5fd696e0c6925917344d15a3c2d9c;p=stockfish diff --git a/src/thread.h b/src/thread.h index cc490639..80363fa7 100644 --- a/src/thread.h +++ b/src/thread.h @@ -20,7 +20,6 @@ #if !defined(THREAD_H_INCLUDED) #define THREAD_H_INCLUDED -#include #include #include "lock.h" @@ -81,17 +80,12 @@ struct Thread { int maxPly; Lock sleepLock; WaitCondition sleepCond; + ThreadHandle handle; SplitPoint* volatile splitPoint; volatile int activeSplitPoints; volatile bool is_searching; volatile bool do_sleep; volatile bool do_terminate; - -#if defined(_MSC_VER) - HANDLE handle; -#else - pthread_t handle; -#endif };