Skip to content

Commit

Permalink
Small tweak to idle_loop()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mcostalba authored and zamar committed Sep 4, 2014
1 parent 95b2408 commit cd065dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit cd065dd

Please sign in to comment.