Move ThreadsManager::exit() to d'tor

And add final touches to this long patch series.

All the series has been verified against regression with
20K games at fast TC.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2012-03-26 07:58:10 +01:00
parent b978eb05dc
commit 32d3a07c67
4 changed files with 61 additions and 65 deletions

View File

@@ -112,16 +112,16 @@ class ThreadsManager {
static storage duration are automatically set to zero before enter main()
*/
public:
void init();
void exit();
void init(); // No c'tor becuase Threads is static and we need stuff initialized
~ThreadsManager();
Thread& operator[](int id) { return *threads[id]; }
bool use_sleeping_threads() const { return useSleepingThreads; }
int min_split_depth() const { return minimumSplitDepth; }
int size() const { return (int)threads.size(); }
void wake_up();
void sleep();
void wake_up() const;
void sleep() const;
void read_uci_options();
bool available_slave_exists(int master) const;
void set_timer(int msec);