From: Marco Costalba Date: Sat, 13 Feb 2010 12:40:23 +0000 (+0100) Subject: Fix compile error under gcc X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=fb5ba1d32912a3b5fc405511fc34d504df5393b9 Fix compile error under gcc Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index 54266914..46542560 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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);