]> git.sesse.net Git - stockfish/blobdiff - src/benchmark.cpp
Revert TT replacement strategy changes (#380)
[stockfish] / src / benchmark.cpp
index e27e81fee5a838142cccdce9b46622d76d8ef50b..07e1341ec354c77c2c973ef318a947012baa5064 100644 (file)
@@ -104,7 +104,7 @@ void benchmark(const Position& current, istream& is) {
 
   Options["Hash"]    = ttSize;
   Options["Threads"] = threads;
-  TT.clear();
+  Search::reset();
 
   if (limitType == "time")
       limits.movetime = stoi(limit); // movetime is in ms
@@ -158,7 +158,7 @@ void benchmark(const Position& current, istream& is) {
       else
       {
           Threads.start_thinking(pos, limits, st);
-          Threads.wait_for_think_finished();
+          Threads.main()->join();
           nodes += Search::RootPos.nodes_searched();
       }
   }