Properly comment about shutdown process in init.cpp file

This commit is contained in:
Kyuntae Ethan Kim 2017-06-29 01:24:41 +09:00
parent 416af3edf5
commit 581c41157d

View file

@ -102,12 +102,11 @@ static const char* FEE_ESTIMATES_FILENAME="fee_estimates.dat";
// created by AppInit() or the Qt main() function. // created by AppInit() or the Qt main() function.
// //
// A clean exit happens when StartShutdown() or the SIGTERM // A clean exit happens when StartShutdown() or the SIGTERM
// signal handler sets fRequestShutdown, which triggers // signal handler sets fRequestShutdown, which makes main thread's
// the DetectShutdownThread(), which interrupts the main thread group. // WaitForShutdown() interrupts the thread group.
// DetectShutdownThread() then exits, which causes AppInit() to // And then, WaitForShutdown() makes all other on-going threads
// continue (it .joins the shutdown thread). // in the thread group join the main thread.
// Shutdown() is then // Shutdown() is then called to clean up database connections, and stop other
// called to clean up database connections, and stop other
// threads that should only be stopped after the main network-processing // threads that should only be stopped after the main network-processing
// threads have exited. // threads have exited.
// //