X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=9f0bb24add83bff8457c214e98c63af8a9c11210;hp=e03578eef8db488c34e23fde3a95157fbd8102f1;hb=ce159b16b9483f83b9e96ac6bf3d6e2ba7e5619c;hpb=b1f57e92cea7bd36126ef8c26928d8991b74baef diff --git a/src/thread.h b/src/thread.h index e03578ee..9f0bb24a 100644 --- a/src/thread.h +++ b/src/thread.h @@ -57,6 +57,7 @@ struct SplitPoint { volatile Move bestMove; volatile int moveCount; volatile bool cutoff; + volatile bool allSlavesRunning; }; @@ -119,7 +120,7 @@ public: bool use_sleeping_threads() const { return useSleepingThreads; } int min_split_depth() const { return minimumSplitDepth; } int size() const { return (int)threads.size(); } - Thread* main_thread() const { return threads[0]; } + Thread* main_thread() { return threads[0]; } void wake_up() const; void sleep() const; @@ -146,6 +147,5 @@ private: }; extern ThreadsManager Threads; -extern THREAD_LOCAL Thread* this_thread; #endif // !defined(THREAD_H_INCLUDED)