Skip to content

Commit ce82985

Browse files
author
MarcoFalke
committed
Merge #10691: Trivial: Properly comment about shutdown process in init.cpp file.
581c411 Properly comment about shutdown process in init.cpp file (Kyuntae Ethan Kim) Pull request description: Tree-SHA512: 8aaf739ca5eb2cf6f777b69a0d65f391ba311a33d2e23abc4d3008f90c6ef9da79d0683845abfc08978309f43409f0a7021663f8c564e157224c1dbe15138158
2 parents b148803 + 581c411 commit ce82985

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/init.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,11 @@ static const char* FEE_ESTIMATES_FILENAME="fee_estimates.dat";
102102
// created by AppInit() or the Qt main() function.
103103
//
104104
// A clean exit happens when StartShutdown() or the SIGTERM
105-
// signal handler sets fRequestShutdown, which triggers
106-
// the DetectShutdownThread(), which interrupts the main thread group.
107-
// DetectShutdownThread() then exits, which causes AppInit() to
108-
// continue (it .joins the shutdown thread).
109-
// Shutdown() is then
110-
// called to clean up database connections, and stop other
105+
// signal handler sets fRequestShutdown, which makes main thread's
106+
// WaitForShutdown() interrupts the thread group.
107+
// And then, WaitForShutdown() makes all other on-going threads
108+
// in the thread group join the main thread.
109+
// Shutdown() is then called to clean up database connections, and stop other
111110
// threads that should only be stopped after the main network-processing
112111
// threads have exited.
113112
//

0 commit comments

Comments
 (0)