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

Retire put_threads_to_sleep()

Obsoleted by previous patches.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2010-10-17 09:03:39 +01:00
parent 13d8231746
commit 389edb8099

View file

@ -83,7 +83,6 @@ namespace {
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>
@ -501,7 +500,8 @@ bool think(const Position& pos, bool infinite, bool ponder, int time[], int incr
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;
}
@ -2575,16 +2575,6 @@ split_point_start: // At split points actual search starts from here
}
// 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