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

Method shutdown

src/jrd/WorkerAttachment.cpp:230–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void WorkerAttachment::shutdown()
231{
232 if (m_shutdown)
233 return;
234
235 MutexLockGuard guard(m_mapMutex, FB_FUNCTION);
236
237 if (m_shutdown)
238 return;
239
240 m_shutdown = true;
241
242 MapDbIdToWorkAtts::Accessor acc(&m_map);
243 if (!acc.getFirst())
244 return;
245
246 do
247 {
248 WorkerAttachment* item = acc.current()->second;
249 item->clear(false);
250 delete item;
251 }
252 while (acc.getNext());
253
254 m_map->clear();
255}
256
257
258void WorkerAttachment::shutdownDbb(Database* dbb)

Callers

nothing calls this directly

Calls 4

getFirstMethod · 0.45
currentMethod · 0.45
clearMethod · 0.45
getNextMethod · 0.45

Tested by

no test coverage detected