while (size() < requested)
push_back(new Thread(size()));
clear();
- }
- // Reallocate the hash with the new threadpool size
- TT.resize(Options["Hash"]);
+ // Reallocate the hash with the new threadpool size
+ TT.resize(Options["Hash"]);
+
+ // Adjust cluster buffers
+ Cluster::ttRecvBuff_resize(requested);
+ }
}
/// ThreadPool::clear() sets threadPool data to initial values.
main()->wait_for_search_finished();
stopOnPonderhit = stop = false;
+
ponder = ponderMode;
Search::Limits = limits;
Search::RootMoves rootMoves;
setupStates->back() = tmp;
+ Cluster::signals_init();
+
main()->start_searching();
}