]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Rename THREAD_MAX in MAX_THREADS
[stockfish] / src / thread.h
index 3dc0f274ba7d21a853bcfc11ad2948b3dbb537c1..e62857dd409b7df14ef90c59226f889b8413f570 100644 (file)
@@ -38,7 +38,7 @@
 //// Constants and variables
 ////
 
-const int THREAD_MAX = 8;
+const int MAX_THREADS = 8;
 const int ACTIVE_SPLIT_POINTS_MAX = 8;
 
 
@@ -49,14 +49,14 @@ const int ACTIVE_SPLIT_POINTS_MAX = 8;
 struct SplitPoint {
   SplitPoint *parent;
   const Position* pos;
-  SearchStack sstack[THREAD_MAX][PLY_MAX_PLUS_2];
+  SearchStack sstack[MAX_THREADS][PLY_MAX_PLUS_2];
   SearchStack *parentSstack;
   int ply;
   Depth depth;
   volatile Value alpha, beta, bestValue;
   Value futilityValue;
   bool pvNode;
-  int master, slaves[THREAD_MAX];
+  int master, slaves[MAX_THREADS];
   Lock lock;
   MovePicker *mp;
   volatile int moves;
@@ -70,7 +70,7 @@ struct Thread {
   volatile int activeSplitPoints;
   uint64_t nodes;
   uint64_t betaCutOffs[2];
-  volatile bool stop;
+  volatile bool stopRequest;
   volatile bool running;
   volatile bool idle;
   volatile bool sleeping;