- // 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() {
-
- assert(!AllThreadsShouldSleep || ActiveThreads == 1);
-
- // This makes the threads to go to sleep
- AllThreadsShouldSleep = true;
- }
-