summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
58c2fe3)
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
void ThreadsManager::wake_up() {
void ThreadsManager::wake_up() {
- for (int i = 1; i < size(); i++) // Main thread is already running
+ for (int i = 0; i < size(); i++)
{
threads[i]->do_sleep = false;
{
threads[i]->do_sleep = false;
+ threads[i]->maxPly = 0;
if (!useSleepingThreads)
threads[i]->wake_up();
if (!useSleepingThreads)
threads[i]->wake_up();