}
slave->allocMutex.unlock();
-
- slave->notify_one(); // Could be sleeping
}
// Everything is set up. The master thread enters the idle loop, from which
RootMoves.push_back(RootMove(m));
main()->thinking = true;
- main()->notify_one(); // Starts main thread
+
+ for (Thread* th : *this)
+ th->notify_one();
}