X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fthread.h;h=ee43bfb5ba19f7afb7b43f50f45c6377d7574f55;hb=66c5eaebd8c3ecc00a21a9c7f214cb59db4ce4e5;hp=c1b635b7ea4db61dfca33ed0ee3423e3eeefb862;hpb=44236f4ed9844598e1cb065937c3770a938964b2;p=stockfish diff --git a/src/thread.h b/src/thread.h index c1b635b7..ee43bfb5 100644 --- a/src/thread.h +++ b/src/thread.h @@ -96,12 +96,12 @@ struct ThreadPool : public std::vector { void exit(); // be initialized and valid during the whole thread lifetime. MainThread* main() { return static_cast(at(0)); } - void start_thinking(Position&, StateListPtr&, const Search::LimitsType&); + void start_thinking(Position&, StateListPtr&, const Search::LimitsType&, bool = false); void read_uci_options(); uint64_t nodes_searched() const; uint64_t tb_hits() const; - std::atomic_bool stop, stopOnPonderhit; + std::atomic_bool stop, ponder, stopOnPonderhit; private: StateListPtr setupStates;