]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Initialize a new split point out of lock
[stockfish] / src / thread.h
index 100620313fcebc7e7f5f6161fe15b600b0a9929e..1e92b77625ac18419061353dae1df08e2dfd9acf 100644 (file)
@@ -38,7 +38,7 @@ struct SplitPoint {
   const Position* pos;
   Depth depth;
   Value beta;
-  int pvNode;
+  int nodeType;
   int ply;
   int master;
   Move threatMove;
@@ -116,10 +116,10 @@ public:
 
   template <bool Fake>
   void split(Position& pos, SearchStack* ss, Value* alpha, const Value beta, Value* bestValue,
-             Depth depth, Move threatMove, int moveCount, MovePicker* mp, bool pvNode);
+             Depth depth, Move threatMove, int moveCount, MovePicker* mp, int nodeType);
 private:
   Thread threads[MAX_THREADS];
-  Lock mpLock;
+  Lock threadsLock;
   Depth minimumSplitDepth;
   int maxThreadsPerSplitPoint;
   int activeThreads;