]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Remove current line printing in SMP mode
[stockfish] / src / thread.h
index 556ebc59a27eb9c5f8b89ef2e9ac1cba7c024330..0348ed82cb722e68035d2ec7e85911db860d5562 100644 (file)
@@ -47,21 +47,27 @@ const int ACTIVE_SPLIT_POINTS_MAX = 8;
 ////
 
 struct SplitPoint {
-  SplitPoint *parent;
+
+  // Const data after splitPoint has been setup
+  SplitPoint* parent;
   const Position* pos;
-  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[MAX_THREADS];
+  Depth depth;
+  Value beta;
+  int ply, master, slaves[MAX_THREADS];
+  SearchStack sstack[MAX_THREADS][PLY_MAX_PLUS_2];
+
+  // Const pointers to shared data
+  MovePicker* mp;
+  SearchStack* parentSstack;
+
+  // Shared data
   Lock lock;
-  MovePicker *mp;
+  volatile Value alpha;
+  volatile Value bestValue;
   volatile int moves;
   volatile int cpus;
-  bool finished;
+  volatile bool stopRequest;
 };
 
 // ThreadState type is used to represent thread's current state
@@ -77,12 +83,10 @@ enum ThreadState
 };
 
 struct Thread {
-  SplitPoint *splitPoint;
+  SplitPointsplitPoint;
   volatile int activeSplitPoints;
   uint64_t nodes;
   uint64_t betaCutOffs[2];
-  volatile bool stopRequest;
-  volatile bool printCurrentLineRequest;
   volatile ThreadState state;
   unsigned char pad[64]; // set some distance among local data for each thread
 };