X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=33e266898e415f5515fe9d965d13959726ade919;hp=70bcafa9cfcf0a77a9cfdf7638effdf08d910f88;hb=93195555ed230df1d29933de6236d6847ae88310;hpb=07e0741dfbca07097f38e46f3f7752b48675a515 diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 70bcafa9..33e26689 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -158,7 +158,7 @@ void benchmark(const Position& current, istream& is) { Search::StateStackPtr st; limits.startTime = now(); Threads.start_thinking(pos, limits, st); - Threads.main()->join(); + Threads.main()->wait_for_search_finished(); nodes += Threads.nodes_searched(); } }