From 124c43474e3f71c29854bebbd45d55272c4b2eee Mon Sep 17 00:00:00 2001 From: borg323 Date: Fri, 9 Nov 2018 22:40:22 +0200 Subject: [PATCH] use bestmove_is_sent_ for Search::IsSearchActive() --- src/mcts/search.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mcts/search.cc b/src/mcts/search.cc index 0ab96fc29e..6400df1d64 100644 --- a/src/mcts/search.cc +++ b/src/mcts/search.cc @@ -579,7 +579,8 @@ void Search::RunBlocking(size_t threads) { } bool Search::IsSearchActive() const { - return !stop_.load(std::memory_order_acquire); + Mutex::Lock lock(counters_mutex_); + return !bestmove_is_sent_; } void Search::WatchdogThread() {