| 140 | Thread timerThread; |
| 141 | |
| 142 | FB_BOOLEAN MasterImplementation::getProcessExiting() |
| 143 | { |
| 144 | if (abortShutdownFlag) |
| 145 | return true; |
| 146 | |
| 147 | #ifdef WIN_NT |
| 148 | // Sometime, when user process exits not calling fb_shutdown and timer thread should |
| 149 | // be terminated already, wait for its handle with zero timeout returns WAIT_TIMEOUT. |
| 150 | // Usage of small non-zero timeout seems fixed such cases. |
| 151 | |
| 152 | if (timerThread.waitFor(10)) |
| 153 | return true; |
| 154 | #endif |
| 155 | |
| 156 | return false; |
| 157 | } |
| 158 | |
| 159 | |
| 160 | namespace { |
no test coverage detected