X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=f620c71c69d2640de29e098ba904f68ddcadd023;hp=ac0be89fdcaee7766bbe8a3ede5765f90d7c691f;hb=c386ce0023f114e387c02a7e36256d8b0a908cd0;hpb=b69d9ee3f720ba04bbc22eb24203123f4b79707f diff --git a/src/thread.cpp b/src/thread.cpp index ac0be89f..f620c71c 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -303,7 +303,7 @@ Value ThreadsManager::split(Position& pos, SearchStack* ss, Value alpha, Value b threads[i].splitPoint = sp; // This makes the slave to exit from idle_loop() - threads[i].state = Thread::WORKISWAITING; + threads[i].state = Thread::SEARCHING; if (useSleepingThreads) threads[i].wake_up(); @@ -317,7 +317,6 @@ Value ThreadsManager::split(Position& pos, SearchStack* ss, Value alpha, Value b masterThread.splitPoint = sp; masterThread.activeSplitPoints++; - masterThread.state = Thread::WORKISWAITING; // Everything is set up. The master thread enters the idle loop, from // which it will instantly launch a search, because its state is