X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.h;h=1ffacb300de2d24d79120c90c4d8239a4aa58cad;hp=408aaef751b4c784f0e8a6425266751d13512a43;hb=2ec626ddae9c81af6338f72296df8a1465b5e036;hpb=ca677526452823d1fe89543762edb66684e7bdc7 diff --git a/src/thread.h b/src/thread.h index 408aaef7..1ffacb30 100644 --- a/src/thread.h +++ b/src/thread.h @@ -55,7 +55,7 @@ public: void idle_loop(); void start_searching(bool resume = false); void wait_for_search_finished(); - void wait(std::atomic_bool& b); + void wait(std::atomic_bool& condition); Pawns::Table pawnsTable; Material::Table materialTable; @@ -99,8 +99,8 @@ struct ThreadPool : public std::vector { MainThread* main() { return static_cast(at(0)); } void start_thinking(Position&, StateListPtr&, const Search::LimitsType&); void read_uci_options(); - uint64_t nodes_searched(); - uint64_t tb_hits(); + uint64_t nodes_searched() const; + uint64_t tb_hits() const; private: StateListPtr setupStates;