X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=606f96262dd72ead3f3672a45c1148f840efcb97;hp=3f902dc17b794a35250f87759e932dd9f0607bd4;hb=7ff965eebfbc17d2bb4be9c64d56fecf68615010;hpb=ce8ac7997c9ddb34c28859a5b9afde0e2b6a4a9d diff --git a/src/thread.h b/src/thread.h index 3f902dc1..606f9626 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. @@ -45,7 +46,7 @@ struct SplitPoint { // Const data after split point has been setup const Position* pos; Search::Stack* ss; - Thread* masterThread; + Thread* master; Depth depth; Value beta; int nodeType; @@ -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; };