| 32 | static bool fDaemon = false; |
| 33 | |
| 34 | void DetectShutdownThread(boost::thread_group* threadGroup) { |
| 35 | RenameThread("coin-waitexit"); |
| 36 | bool fShutdown = ShutdownRequested(); |
| 37 | // Tell the main threads to shutdown. |
| 38 | while (!fShutdown) { |
| 39 | MilliSleep(200); |
| 40 | fShutdown = ShutdownRequested(); |
| 41 | } |
| 42 | if (threadGroup) { |
| 43 | threadGroup->interrupt_all(); |
| 44 | threadGroup->join_all(); |
| 45 | } |
| 46 | |
| 47 | Interrupt(); |
| 48 | } |
| 49 | |
| 50 | ////////////////////////////////////////////////////////////////////////////// |
| 51 | // |
nothing calls this directly
no test coverage detected