]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Don't wake up /sleep threads in think() anymore
[stockfish] / src / search.cpp
index 24070b43df8d2e2a75b3bc72ee3055e10a0c9117..29d022added67563087a207714086d02c45b50fe 100644 (file)
@@ -464,10 +464,6 @@ bool think(const Position& pos, bool infinite, bool ponder, int time[], int incr
       init_eval(ThreadsMgr.active_threads());
   }
 
-  // Wake up needed threads
-  for (int i = 1; i < newActiveThreads; i++)
-      ThreadsMgr.wake_sleeping_thread(i);
-
   // Set thinking time
   int myTime = time[pos.side_to_move()];
   int myIncrement = increment[pos.side_to_move()];
@@ -500,9 +496,6 @@ bool think(const Position& pos, bool infinite, bool ponder, int time[], int incr
   if (UseLogFile)
       LogFile.close();
 
-  // This makes all the threads to go to sleep
-  ThreadsMgr.set_active_threads(1);
-
   return !Quit;
 }