X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=34424d3791c7b30fdabab421b93c506c93f285a0;hp=e3194a23eadbb6b210f696ce12853a850836de1c;hb=27c5cb59127101d834636d4faa0062d4e7bd05ce;hpb=80d7556af785f57a4f90d121c57c9c2f85a2963e diff --git a/src/thread.cpp b/src/thread.cpp index e3194a23..34424d37 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -29,8 +29,6 @@ using namespace Search; ThreadPool Threads; // Global object -extern void check_time(); - namespace { // Helpers to launch a thread after creation and joining before delete. Outside the @@ -83,7 +81,7 @@ void ThreadBase::wait_while(std::atomic& condition) { } -// Thread constructor makes some init but does not launch any execution thread, +// Thread constructor makes some init but does not launch any execution thread, // which will be started only when the constructor returns. Thread::Thread() { @@ -170,7 +168,7 @@ void MainThread::join() { // ThreadPool::init() is called at startup to create and launch requested threads, -// that will go immediately to sleep. We cannot use a constructor because Threads +// that will go immediately to sleep. We cannot use a constructor because Threads // is a static object and we need a fully initialized engine at this point due to // allocation of Endgames in the Thread constructor.