]> git.sesse.net Git - stockfish/commitdiff
Rename stop_threads() to exit_threads()
authorMarco Costalba <mcostalba@gmail.com>
Sat, 13 Feb 2010 11:07:13 +0000 (12:07 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 13 Feb 2010 11:07:13 +0000 (12:07 +0100)
More stick to what actually happens.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/application.cpp
src/search.cpp
src/search.h

index 3bdd70bb0a9f93155ffcfe18233e7763c89b6cdb..3848cba697108bfb1f75c9851d9a1b4cbe94e97e 100644 (file)
@@ -59,7 +59,7 @@ Application::Application() {
 
 Application::~Application() {
 
-  stop_threads();
+  exit_threads();
   quit_eval();
 }
 
index 22bc0156705121a9a02adfcd8b59c1ff66e21997..9edaf67bfa50289c533e3dc0e096eda3545141d5 100644 (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.
 
-void stop_threads() {
+void exit_threads() {
 
   ActiveThreads = THREAD_MAX;  // HACK
   AllThreadsShouldSleep = false;  // HACK
index 1dc4e1fa572565ca04e9c36f4201baf1be4d624f..c081d527e02f61a992ff2b8261fd34db1167f1ef 100644 (file)
@@ -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[]);