]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Fix compile error under gcc
[stockfish] / src / search.cpp
index 54266914b25688f82a5bea57d898743291a7c2b5..4654256065bd54612ff03e1c2a6778e65a7f169c 100644 (file)
@@ -2788,7 +2788,7 @@ namespace {
 
 #if !defined(_MSC_VER)
             pthread_mutex_lock(&WaitLock);
-            if (Idle || threadID >= ActiveThreads)
+            if (AllThreadsShouldSleep || threadID >= ActiveThreads)
                 pthread_cond_wait(&WaitCond, &WaitLock);
 
             pthread_mutex_unlock(&WaitLock);