MCPcopy Create free account
hub / github.com/LUX-Core/lux / DetectShutdownThread

Function DetectShutdownThread

src/luxd.cpp:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42static bool fDaemon;
43
44void DetectShutdownThread()
45{
46 bool fShutdown = ShutdownRequested();
47 // Tell the main threads to shutdown.
48 while (!fShutdown) {
49 MilliSleep(200);
50 fShutdown = ShutdownRequested();
51 }
52 Interrupt();
53}
54
55//////////////////////////////////////////////////////////////////////////////
56//

Callers 1

AppInitFunction · 0.85

Calls 3

MilliSleepFunction · 0.85
InterruptFunction · 0.85
ShutdownRequestedFunction · 0.70

Tested by

no test coverage detected