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:
Marco Costalba
2012-03-24 21:36:33 +01:00
parent 553655eb07
commit 41561c9bb8
4 changed files with 57 additions and 46 deletions

View File

@@ -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"])