Correcty resey TB hit counter

Restore original behaviour to reset
the counter before a new move search.

Also fixed some warnings and added const
qualifier to a couple of functions, as
suggested by m_stembera.

Thanks to Werner Bergmans for reporting
the regression.

No functional change.
This commit is contained in:
Marco Costalba
2016-10-22 08:21:38 +02:00
parent ca67752645
commit e18321f55a
2 changed files with 7 additions and 5 deletions

View File

@@ -99,8 +99,8 @@ struct ThreadPool : public std::vector<Thread*> {
MainThread* main() { return static_cast<MainThread*>(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;