mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Use std::vector<Thread*> to store threads
We store pointers instead of Thread objects because Thread is not copy-constructible nor copy-assignable and default ones are not suitable. So we cannot store directly in a std::vector. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -310,8 +310,7 @@ void Search::think() {
|
||||
// We're ready to start searching. Call the iterative deepening loop function
|
||||
id_loop(pos);
|
||||
|
||||
// Stop timer and send all the slaves to sleep, if not already sleeping
|
||||
Threads.set_timer(0);
|
||||
Threads.set_timer(0); // Stop timer
|
||||
Threads.sleep();
|
||||
|
||||
if (Options["Use Search Log"])
|
||||
|
||||
Reference in New Issue
Block a user