Thread::Thread() {
exit = false;
- maxPly = 0;
+ selDepth = 0;
nodes = tbHits = 0;
idx = Threads.size(); // Start from 0
/// and starts a new search, then returns immediately.
void ThreadPool::start_thinking(Position& pos, StateListPtr& states,
- const Search::LimitsType& limits) {
+ const Search::LimitsType& limits, bool ponderMode) {
main()->wait_for_search_finished();
stopOnPonderhit = stop = false;
+ ponder = ponderMode;
Search::Limits = limits;
Search::RootMoves rootMoves;
for (Thread* th : Threads)
{
- th->maxPly = 0;
th->nodes = 0;
th->tbHits = 0;
th->rootDepth = DEPTH_ZERO;