1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

Rename stop_threads() to exit_threads()

More stick to what actually happens.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2010-02-13 12:07:13 +01:00
parent 8a504d36f9
commit a16415f44d
3 changed files with 4 additions and 4 deletions

View file

@ -59,7 +59,7 @@ Application::Application() {
Application::~Application() { Application::~Application() {
stop_threads(); exit_threads();
quit_eval(); quit_eval();
} }

View file

@ -612,10 +612,10 @@ void init_threads() {
} }
/// stop_threads() is called when the program exits. It makes all the /// exit_threads() is called when the program exits. It makes all the
/// helper threads exit cleanly. /// helper threads exit cleanly.
void stop_threads() { void exit_threads() {
ActiveThreads = THREAD_MAX; // HACK ActiveThreads = THREAD_MAX; // HACK
AllThreadsShouldSleep = false; // HACK AllThreadsShouldSleep = false; // HACK

View file

@ -69,7 +69,7 @@ struct SearchStack {
extern void init_search(); extern void init_search();
extern void init_threads(); extern void init_threads();
extern void stop_threads(); extern void exit_threads();
extern bool 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 time[], int increment[], int movesToGo, int maxDepth,
int maxNodes, int maxTime, Move searchMoves[]); int maxNodes, int maxTime, Move searchMoves[]);