From: Joona Kiiski Date: Tue, 23 Feb 2010 10:07:58 +0000 (+0200) Subject: Add one assert X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=5c944fb3b46931262effc6628ca5eb58fa4aa172 Add one assert Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index 2e3f9d56..3a70c8f7 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2594,6 +2594,7 @@ namespace { // instead of wasting CPU time polling for work. while (AllThreadsShouldSleep || threadID >= ActiveThreads) { + assert(!waitSp); assert(threadID != 0); threads[threadID].state = THREAD_SLEEPING;