X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=949f87ad28ae086fe75e0577b98e859029cfc4ed;hp=9750ed7ba020be8008007f482f7ab9e146e4c9dd;hb=d65f75c1532536f11a2dfbc0263c55e1beb88c2b;hpb=f8f5dcbb682830a66a37f68f3c192bbbfc84a33a diff --git a/src/thread.h b/src/thread.h index 9750ed7b..949f87ad 100644 --- a/src/thread.h +++ b/src/thread.h @@ -33,6 +33,7 @@ struct Thread; const int MAX_THREADS = 128; const int MAX_SPLITPOINTS_PER_THREAD = 8; +const int MAX_SLAVES_PER_SPLITPOINT = 4; /// Mutex and ConditionVariable struct are wrappers of the low level locking /// machinery and are modeled after the corresponding C++11 classes. @@ -72,6 +73,7 @@ struct SplitPoint { const Position* pos; Search::Stack* ss; Thread* masterThread; + int spLevel; Depth depth; Value beta; int nodeType; @@ -84,6 +86,7 @@ struct SplitPoint { // Shared variable data Mutex mutex; std::bitset slavesMask; + int slavesCount; volatile bool allSlavesSearching; volatile uint64_t nodes; volatile Value alpha;