#include "thread.h"
#include "uci.h"
#include "syzygy/tbprobe.h"
+#include "tt.h"
ThreadPool Threads; // Global object
push_back(new Thread(size()));
clear();
}
+
+ // Reallocate the hash with the new threadpool size
+ TT.resize(Options["Hash"]);
}
/// ThreadPool::clear() sets threadPool data to initial values.
for (Thread* th : *this)
{
- th->nodes = th->tbHits = th->nmp_ply = th->nmp_odd = 0;
+ th->nodes = th->tbHits = th->nmp_min_ply = 0;
th->rootDepth = th->completedDepth = DEPTH_ZERO;
th->rootMoves = rootMoves;
th->rootPos.set(pos.fen(), pos.is_chess960(), &setupStates->back(), th);