From a16415f44dde03fe1eee8e67d999196dd1838573 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 13 Feb 2010 12:07:13 +0100 Subject: [PATCH] Rename stop_threads() to exit_threads() More stick to what actually happens. No functional change. Signed-off-by: Marco Costalba --- src/application.cpp | 2 +- src/search.cpp | 4 ++-- src/search.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/application.cpp b/src/application.cpp index 3bdd70bb..3848cba6 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -59,7 +59,7 @@ Application::Application() { Application::~Application() { - stop_threads(); + exit_threads(); quit_eval(); } diff --git a/src/search.cpp b/src/search.cpp index 22bc0156..9edaf67b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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. -void stop_threads() { +void exit_threads() { ActiveThreads = THREAD_MAX; // HACK AllThreadsShouldSleep = false; // HACK diff --git a/src/search.h b/src/search.h index 1dc4e1fa..c081d527 100644 --- a/src/search.h +++ b/src/search.h @@ -69,7 +69,7 @@ struct SearchStack { extern void init_search(); 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, int time[], int increment[], int movesToGo, int maxDepth, int maxNodes, int maxTime, Move searchMoves[]); -- 2.39.2