- MainThread* main() { return static_cast<MainThread*>(at(0)); }
- void start_thinking(Position&, StateListPtr&, const Search::LimitsType&);
- void read_uci_options();
- uint64_t nodes_searched() const;
- uint64_t tb_hits() const;
+ 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); }
+
+ std::atomic_bool stop;