X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=04e9a370cb9a5604ef7afa4a586263a3d594e28c;hp=0265ee670b2ea9e84765a8b6208f8b1f8ccb2e9c;hb=950c8436edc50857b83eb3e0cbaca06407764655;hpb=dccaa145d2b57999aa3e368c7c9203731b4e9685 diff --git a/src/thread.h b/src/thread.h index 0265ee67..04e9a370 100644 --- a/src/thread.h +++ b/src/thread.h @@ -31,9 +31,9 @@ struct Thread; -const int MAX_THREADS = 128; -const int MAX_SPLITPOINTS_PER_THREAD = 8; -const int MAX_SLAVES_PER_SPLITPOINT = 4; +const size_t MAX_THREADS = 128; +const size_t MAX_SPLITPOINTS_PER_THREAD = 8; +const size_t 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. @@ -85,7 +85,6 @@ struct SplitPoint { // Shared variable data Mutex mutex; std::bitset slavesMask; - int slavesCount; volatile bool allSlavesSearching; volatile uint64_t nodes; volatile Value alpha; @@ -137,7 +136,7 @@ struct Thread : public ThreadBase { size_t idx; int maxPly; SplitPoint* volatile activeSplitPoint; - volatile int splitPointsSize; + volatile size_t splitPointsSize; volatile bool searching; };