mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
build: prepare to move DetectShutdownThread
This commit is contained in:
parent
c83d4d2170
commit
a9380c72be
@ -123,13 +123,15 @@ void Shutdown()
|
||||
//
|
||||
void DetectShutdownThread(boost::thread_group* threadGroup)
|
||||
{
|
||||
bool shutdown = ShutdownRequested();
|
||||
// Tell the main threads to shutdown.
|
||||
while (!fRequestShutdown)
|
||||
while (!shutdown)
|
||||
{
|
||||
MilliSleep(200);
|
||||
if (fRequestShutdown)
|
||||
threadGroup->interrupt_all();
|
||||
shutdown = ShutdownRequested();
|
||||
}
|
||||
if (threadGroup)
|
||||
threadGroup->interrupt_all();
|
||||
}
|
||||
|
||||
void HandleSIGTERM(int)
|
||||
|
Loading…
Reference in New Issue
Block a user