]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Upon changing the number of threads, make sure all threads are bound
[stockfish] / src / search.cpp
index 1aa3e92e69487b51e504acebc5e1127bb2b6f033..c72f0afbc114930d84691f678399b374fee4554f 100644 (file)
@@ -173,13 +173,7 @@ void Search::clear() {
 
   Time.availableNodes = 0;
   TT.clear();
-
-  for (Thread* th : Threads)
-      th->clear();
-
-  Threads.main()->callsCnt = 0;
-  Threads.main()->previousScore = VALUE_INFINITE;
-  Threads.main()->previousTimeReduction = 1;
+  Threads.clear();
 }