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 5426691..4654256 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);