X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fthread.h;h=54083d2e5c83af994e0c3f647dc61eacd51d44cf;hb=a6f873cd8d05dda3638a7ea624ccbac90ecb98af;hp=3f902dc17b794a35250f87759e932dd9f0607bd4;hpb=96e36a789708164b14c873cdb2e0acac9aca57e7;p=stockfish diff --git a/src/thread.h b/src/thread.h index 3f902dc1..54083d2e 100644 --- a/src/thread.h +++ b/src/thread.h @@ -34,8 +34,9 @@ struct Thread; -const int MAX_THREADS = 128; -const int MAX_SPLITPOINTS_PER_THREAD = 8; +const size_t MAX_THREADS = 128; +const size_t MAX_SPLITPOINTS_PER_THREAD = 8; +const size_t MAX_SLAVES_PER_SPLITPOINT = 4; /// SplitPoint struct stores information shared by the threads searching in /// parallel below the same split point. It is populated at splitting time. @@ -108,7 +109,7 @@ struct Thread : public ThreadBase { size_t idx; int maxPly; SplitPoint* volatile activeSplitPoint; - volatile int splitPointsSize; + volatile size_t splitPointsSize; volatile bool searching; };