X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=07e1341ec354c77c2c973ef318a947012baa5064;hp=e27e81fee5a838142cccdce9b46622d76d8ef50b;hb=2e86d1febc163e076320a6a21060fc5a1c7c0dff;hpb=0b36ba74fc0a80388cac43a35962ffc73c01b071 diff --git a/src/benchmark.cpp b/src/benchmark.cpp index e27e81fe..07e1341e 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -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(); } }