Skip to content

Commit

Permalink
use bestmove_is_sent_ for Search::IsSearchActive() (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
borg323 authored Nov 11, 2018
1 parent 4b1afcd commit d500fe0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mcts/search.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d500fe0

Please sign in to comment.