Use only one ConditionVariable to sync UI
[stockfish] / src / benchmark.cpp
index e27e81fee5a838142cccdce9b46622d76d8ef50b..fbf7b0e3a88990004ecbbe5ec54a02ecb20c1290 100644 (file)
@@ -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();
       }
   }