Fix compile error under gcc
authorMarco Costalba <mcostalba@gmail.com>
Sat, 13 Feb 2010 12:40:23 +0000 (13:40 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 13 Feb 2010 12:40:23 +0000 (13:40 +0100)
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
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);