MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getProcessExiting

Method getProcessExiting

src/yvalve/MasterImplementation.cpp:142–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140Thread timerThread;
141
142FB_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
160namespace {

Callers 3

~UnloadDetectorHelperMethod · 0.45
atExitShutdownMethod · 0.45
shutdownMethod · 0.45

Calls 1

waitForMethod · 0.45

Tested by

no test coverage detected