mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08: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:
committed by
Joona Kiiski
parent
95b24083fb
commit
cd065dd584
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user