- MainThread* main() { return static_cast<MainThread*>(at(0)); }
- void start_thinking(Position&, StateListPtr&, const Search::LimitsType&);
- void read_uci_options();
- int64_t nodes_searched();
+ MainThread* main() const { return static_cast<MainThread*>(front()); }
+ uint64_t nodes_searched() const { return accumulate(&Thread::nodes); }
+ uint64_t tb_hits() const { return accumulate(&Thread::tbHits); }
+ Thread* get_best_thread() const;
+ void start_searching();
+ void wait_for_search_finished() const;
+
+ std::atomic_bool stop, increaseDepth;