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

Method shutdown

src/common/Task.cpp:115–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void WorkerThread::shutdown(bool wait)
116{
117 if (m_state == SHUTDOWN)
118 return;
119
120 m_state = STOPPING;
121 m_waitSem.release();
122
123 if (wait)
124 {
125 m_thread.waitForCompletion();
126 m_state = SHUTDOWN;
127 }
128}
129
130
131

Callers 1

~CoordinatorMethod · 0.45

Calls 2

releaseMethod · 0.45
waitForCompletionMethod · 0.45

Tested by

no test coverage detected