mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 10:06:26 +08:00
Rewrite the way application exits
Centralize in a single object all the global resources management and avoid a bunch of sparse exit() calls. This is more reliable and clean and more stick to C++ coding practices. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -84,7 +84,7 @@ extern History H;
|
||||
|
||||
extern void init_threads();
|
||||
extern void stop_threads();
|
||||
extern void think(const Position &pos, bool infinite, bool ponder, int side_to_move,
|
||||
extern bool think(const Position &pos, bool infinite, bool ponder, int side_to_move,
|
||||
int time[], int increment[], int movesToGo, int maxDepth,
|
||||
int maxNodes, int maxTime, Move searchMoves[]);
|
||||
extern int64_t nodes_searched();
|
||||
|
||||
Reference in New Issue
Block a user