From cd065dd584d080f56735007f7ff52bd1ada2fea3 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Fri, 29 Aug 2014 14:59:32 +0200 Subject: [PATCH] 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. --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2