-class ThreadsManager {
- /* As long as the single ThreadsManager object is defined as a global we don't
- need to explicitly initialize to zero its data members because variables with
- static storage duration are automatically set to zero before enter main()
- */
-public:
- Thread& operator[](int threadID) { return threads[threadID]; }
- void init();
- void exit();
-
- bool use_sleeping_threads() const { return useSleepingThreads; }
- int min_split_depth() const { return minimumSplitDepth; }
- int size() const { return activeThreads; }
-
- void set_size(int cnt);
- void read_uci_options();
- bool available_slave_exists(int master) const;
-
- void getline(std::string& cmd);
- void do_uci_async_cmd(const std::string& cmd);
- void start_listener();
- void stop_listener();
-
- template <bool Fake>
- Value split(Position& pos, SearchStack* ss, Value alpha, Value beta, Value bestValue,
- Depth depth, Move threatMove, int moveCount, MovePicker* mp, int nodeType);