]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
In split() release the lock before slow search stack copy
[stockfish] / src / thread.h
index 684e4ab0a2d2e133c7ca376ef7941043d01fd2cf..d12ec845c01f4bc4a288bd6bfe076b8652ca9b5b 100644 (file)
@@ -37,6 +37,7 @@
 ////
 
 const int THREAD_MAX = 8;
+const int ACTIVE_SPLIT_POINTS_MAX = 8;
 
 
 ////
@@ -45,7 +46,7 @@ const int THREAD_MAX = 8;
 
 struct SplitPoint {
   SplitPoint *parent;
-  Position pos;
+  const Position* pos;
   SearchStack sstack[THREAD_MAX][PLY_MAX_PLUS_2];
   SearchStack *parentSstack;
   int ply;