-int64_t ThreadPool::nodes_searched() {
-
- int64_t nodes = 0;
- for (Thread* th : *this)
- nodes += th->rootPos.nodes_searched();
- return nodes;
-}
-
-
-/// ThreadPool::start_thinking() wakes up the main thread sleeping in idle_loop()
-/// and starts a new search, then returns immediately.
-
-void ThreadPool::start_thinking(const Position& pos, StateListPtr& states,
- const Search::LimitsType& limits) {
+void ThreadPool::start_thinking(Position& pos, StateListPtr& states,
+ const Search::LimitsType& limits, bool ponderMode) {