1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

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.
This commit is contained in:
Marco Costalba 2014-08-29 14:59:32 +02:00 committed by Joona Kiiski
parent 95b24083fb
commit cd065dd584

View file

@ -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();