X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=0265ee670b2ea9e84765a8b6208f8b1f8ccb2e9c;hp=9750ed7ba020be8008007f482f7ab9e146e4c9dd;hb=dccaa145d2b57999aa3e368c7c9203731b4e9685;hpb=4eb2d8ce095b284a1e55762548d9821a83a19b3b diff --git a/src/thread.h b/src/thread.h index 9750ed7b..0265ee67 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. @@ -84,6 +85,7 @@ struct SplitPoint { // Shared variable data Mutex mutex; std::bitset slavesMask; + int slavesCount; volatile bool allSlavesSearching; volatile uint64_t nodes; volatile Value alpha;