Don't wake up threads at the beginning of the search

But only when needed, after a split point. This behaviour
does not apply when useSleepingThreads is false, becuase
in this case threads are not woken up at split points so
must be already running.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2012-02-12 14:17:12 +01:00
parent 86e159997c
commit b1768c115c
2 changed files with 9 additions and 11 deletions
+1 -5
View File
@@ -307,11 +307,7 @@ void Search::think() {
<< endl;
}
for (int i = 0; i < Threads.size(); i++)
{
Threads[i].maxPly = 0;
Threads[i].wake_up();
}
Threads.set_size(Options["Threads"]);
// Set best timer interval to avoid lagging under time pressure. Timer is
// used to check for remaining available thinking time.