]> git.sesse.net Git - stockfish/blobdiff - src/thread.h
Upon changing the number of threads, make sure all threads are bound
[stockfish] / src / thread.h
index e2009a7d78b98cd6411391c49c2f8c4b50f408e3..be486acde538e8480d6cf8f0f7d1cdbee1fe6294 100644 (file)
@@ -96,9 +96,8 @@ struct MainThread : public Thread {
 
 struct ThreadPool : public std::vector<Thread*> {
 
-  void init(size_t); // No constructor and destructor, threads rely on globals that should
-  void exit();       // be initialized and valid during the whole thread lifetime.
   void start_thinking(Position&, StateListPtr&, const Search::LimitsType&, bool = false);
+  void clear();
   void set(size_t);
 
   MainThread* main()        const { return static_cast<MainThread*>(front()); }