Skip to content

Commit

Permalink
Merge pull request #3 from LeelaChessZero/master
Browse files Browse the repository at this point in the history
use bestmove_is_sent_ for Search::IsSearchActive() (LeelaChessZero#502)
  • Loading branch information
ankan-ban authored Nov 11, 2018
2 parents 4b1afcd + d500fe0 commit e3ad2c0
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 e3ad2c0

Please sign in to comment.