]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Rejoin lines that belong to HalfDensity map (#952)
[stockfish] / src / thread.cpp
index 1f1490a9f27d8696033db78bf0c9a334385ec678..3c3de60d93c39badc0d1b8f631ada0b33c4f0067 100644 (file)
@@ -37,8 +37,6 @@ Thread::Thread() {
   resetCalls = exit = false;
   maxPly = callsCnt = 0;
   tbHits = 0;
-  history.clear();
-  counterMoves.clear();
   idx = Threads.size(); // Start from 0
 
   std::unique_lock<Mutex> lk(mutex);
@@ -96,6 +94,8 @@ void Thread::start_searching(bool resume) {
 
 void Thread::idle_loop() {
 
+  WinProcGroup::bindThisThread(idx);
+
   while (!exit)
   {
       std::unique_lock<Mutex> lk(mutex);