resetCalls = exit = false;
maxPly = callsCnt = 0;
tbHits = 0;
- history.clear();
- counterMoves.clear();
idx = Threads.size(); // Start from 0
std::unique_lock<Mutex> lk(mutex);
void ThreadPool::init() {
- push_back(new MainThread);
+ push_back(new MainThread());
read_uci_options();
}
assert(requested > 0);
while (size() < requested)
- push_back(new Thread);
+ push_back(new Thread());
while (size() > requested)
delete back(), pop_back();