bool thread_is_available(int slave, int master) const;
bool thread_should_stop(int threadID) const;
void wake_sleeping_thread(int threadID);
- void put_threads_to_sleep();
void idle_loop(int threadID, SplitPoint* sp);
template <bool Fake>
if (UseLogFile)
LogFile.close();
- ThreadsMgr.put_threads_to_sleep();
+ // This makes all the threads to go to sleep
+ ThreadsMgr.set_active_threads(1);
return !Quit;
}
}
- // put_threads_to_sleep() makes all the threads go to sleep just before
- // to leave think(), at the end of the search. Threads should have already
- // finished the job and should be idle.
-
- void ThreadsManager::put_threads_to_sleep() {
-
- // This makes the threads to go to sleep
- ActiveThreads = 1;
- }
-
/// The RootMoveList class
// RootMoveList c'tor