]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Detect search explosions
[stockfish] / src / thread.h
index 5bfa2359afdd5e02908afbb776a5a86df9f24c96..2475d2ec2545101bfbb887c475e89747f5ceab6f 100644 (file)
@@ -60,10 +60,14 @@ public:
   Pawns::Table pawnsTable;
   Material::Table materialTable;
   size_t pvIdx, pvLast;
-  uint64_t ttHitAverage;
+  RunningAverage ttHitAverage;
+  RunningAverage doubleExtensionAverage[COLOR_NB];
+  uint64_t nodesLastExplosive;
+  uint64_t nodesLastNormal;
+  std::atomic<uint64_t> nodes, tbHits, bestMoveChanges;
   int selDepth, nmpMinPly;
   Color nmpColor;
-  std::atomic<uint64_t> nodes, tbHits, bestMoveChanges;
+  ExplosionState state;
 
   Position rootPos;
   StateInfo rootState;