From: Marco Costalba Date: Fri, 29 Aug 2014 12:59:32 +0000 (+0200) Subject: Small tweak to idle_loop() X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=cd065dd584d080f56735007f7ff52bd1ada2fea3;ds=sidebyside Small tweak to idle_loop() In case of a succesful late join we set again 'searching' flag, so we can restart search immediately without an useless lock/unlock cycle. No functional change. --- diff --git a/src/search.cpp b/src/search.cpp index 50f5939d..340d993a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1425,7 +1425,7 @@ void Thread::idle_loop() { while (!exit) { // If this thread has been assigned work, launch a search - if (searching) + while (searching) { Threads.mutex.lock();