+ int min_split_depth() const { return minimumSplitDepth; }
+ int size() const { return activeThreads; }
+ void set_size(int cnt) { activeThreads = cnt; }
+
+ void read_uci_options();
+ bool available_slave_exists(int master) const;
+ void idle_loop(int threadID, SplitPoint* sp);
+
+ template <bool Fake>
+ void split(Position& pos, SearchStack* ss, Value* alpha, const Value beta, Value* bestValue,
+ Depth depth, Move threatMove, int moveCount, MovePicker* mp, int nodeType);
+private:
+ Thread threads[MAX_THREADS];
+ Lock threadsLock;
+ Depth minimumSplitDepth;
+ int maxThreadsPerSplitPoint;
+ int activeThreads;
+ bool useSleepingThreads;
+ volatile bool allThreadsShouldExit;