X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=e863d3269237b66fab96108422926eb3b9669eb0;hp=dea9d79720112ed77902696b8b45877d77ffd5c0;hb=6088ac210883c272832360f28c8922ff1514ef87;hpb=d8349f9d0f4eafda145de67330abcc2cb2d9ba56 diff --git a/src/thread.h b/src/thread.h index dea9d797..e863d326 100644 --- a/src/thread.h +++ b/src/thread.h @@ -30,7 +30,7 @@ #include "search.h" const int MAX_THREADS = 32; -const int MAX_ACTIVE_SPLIT_POINTS = 8; +const int MAX_SPLITPOINTS_PER_THREAD = 8; struct SplitPoint { @@ -73,7 +73,7 @@ struct Thread { void timer_loop(); void wait_for_stop_or_ponderhit(); - SplitPoint splitPoints[MAX_ACTIVE_SPLIT_POINTS]; + SplitPoint splitPoints[MAX_SPLITPOINTS_PER_THREAD]; MaterialInfoTable materialTable; PawnInfoTable pawnTable; int threadID; @@ -81,8 +81,8 @@ struct Thread { Lock sleepLock; WaitCondition sleepCond; ThreadHandle handle; - SplitPoint* volatile splitPoint; - volatile int activeSplitPoints; + SplitPoint* volatile curSplitPoint; + volatile int splitPointsCnt; volatile bool is_searching; volatile bool do_sleep; volatile bool do_exit;