]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Do not wait for threads falling asleep
[stockfish] / src / search.cpp
index 775ad3effeddd7275f3f1769fa3bf350d8dcb412..2e3f9d5663718ad4cac483c1d46b630cc5888d36 100644 (file)
@@ -2960,12 +2960,9 @@ namespace {
     // This makes the threads to go to sleep
     AllThreadsShouldSleep = true;
 
-    // Wait for the threads to be all sleeping and reset flags
-    // to a known state.
+    // Reset flags to a known state.
     for (int i = 1; i < ActiveThreads; i++)
     {
-        while (threads[i].state != THREAD_SLEEPING);
-
         // This flag can be in a random state
         threads[i].printCurrentLineRequest = false;
     }