X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=fbf7b0e3a88990004ecbbe5ec54a02ecb20c1290;hp=e27e81fee5a838142cccdce9b46622d76d8ef50b;hb=26dabb1e6bcd8035f0f3516c4358a73f2b041a1c;hpb=35b6079852ca2b1a12167e4b42b197501d2cc554;ds=inline diff --git a/src/benchmark.cpp b/src/benchmark.cpp index e27e81fe..fbf7b0e3 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -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(); } }