X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=8d3fd615bcb3fa089c0d072075cb3299b37a01a0;hp=aba43c902d6f0a455ef229fba02880b74832f92c;hb=c386ce0023f114e387c02a7e36256d8b0a908cd0;hpb=1e92df6b20aa224026b435e03169edaf4bbecdc1 diff --git a/src/thread.h b/src/thread.h index aba43c90..8d3fd615 100644 --- a/src/thread.h +++ b/src/thread.h @@ -67,10 +67,8 @@ struct Thread { enum ThreadState { - SEARCHING, // Thread is performing work AVAILABLE, // Thread is waiting for work - WORKISWAITING, // Master has ordered us to start searching - TERMINATED // We are quitting and thread is terminated + SEARCHING // Thread is performing work }; void wake_up(); @@ -90,6 +88,12 @@ struct Thread { volatile int activeSplitPoints; volatile bool do_sleep; volatile bool do_terminate; + +#if defined(_MSC_VER) + HANDLE handle; +#else + pthread_t handle; +#endif }; @@ -106,7 +110,6 @@ public: Thread& operator[](int threadID) { return threads[threadID]; } void init(); void exit(); - void init_hash_tables(); bool use_sleeping_threads() const { return useSleepingThreads; } int min_split_depth() const { return minimumSplitDepth; }