Skip to content

Commit cd065dd

Browse files
mcostalbazamar
authored andcommitted
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.
1 parent 95b2408 commit cd065dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ void Thread::idle_loop() {
14251425
while (!exit)
14261426
{
14271427
// If this thread has been assigned work, launch a search
1428-
if (searching)
1428+
while (searching)
14291429
{
14301430
Threads.mutex.lock();
14311431

0 commit comments

Comments
 (0)