/// typically in an async fashion e.g. to stop the search by the GUI.
struct SignalsType {
- std::atomic<bool> stop, stopOnPonderhit, firstRootMove, failedLowAtRoot;
+ std::atomic_bool stop, stopOnPonderhit, firstRootMove, failedLowAtRoot;
};
typedef std::unique_ptr<std::stack<StateInfo>> StateStackPtr;
extern StateStackPtr SetupStates;
void init();
-void reset();
-template<bool Root> uint64_t perft(Position& pos, Depth depth);
+void clear();
+template<bool Root = true> uint64_t perft(Position& pos, Depth depth);
} // namespace Search