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

Method waitForCompletion

src/common/ThreadStart.cpp:192–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void Thread::waitForCompletion()
193{
194 if (isValid())
195 {
196 fb_assert(!isCurrent());
197
198 int state = pthread_join(m_handle, NULL);
199 if (state)
200 Firebird::system_call_failed::raise("pthread_join", state);
201 m_handle = INVALID_HANDLE;
202 }
203}
204
205// ignore errors - this is abnormal completion call
206void Thread::kill() noexcept

Callers 15

~WaitThreadMethod · 0.45
cleanup_portFunction · 0.45
~LockManagerMethod · 0.45
~CryptoManagerMethod · 0.45
terminateCryptThreadMethod · 0.45
shutdownMethod · 0.45
~ProfilerListenerMethod · 0.45
CCH_shutdownFunction · 0.45
VIO_finiFunction · 0.45
~EventManagerMethod · 0.45
TRA_shutdown_sweepFunction · 0.45
waitForMethod · 0.45

Calls 1

raiseFunction · 0.85

Tested by

no test coverage detected