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

Function VIO_fini

src/jrd/vio.cpp:2467–2487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2465
2466
2467void VIO_fini(thread_db* tdbb)
2468{
2469/**************************************
2470 *
2471 * V I O _ f i n i
2472 *
2473 **************************************
2474 *
2475 * Functional description
2476 * Shutdown the garbage collector thread.
2477 *
2478 **************************************/
2479 Database* dbb = tdbb->getDatabase();
2480
2481 if (dbb->dbb_flags & DBB_garbage_collector)
2482 {
2483 dbb->dbb_flags &= ~DBB_garbage_collector;
2484 dbb->dbb_gc_sem.release(); // Wake up running thread
2485 dbb->dbb_gc_fini.waitForCompletion();
2486 }
2487}
2488
2489static void delete_version_chain(thread_db* tdbb, record_param* rpb, bool delete_head)
2490{

Callers 2

internalAttachMethod · 0.85
JRD_shutdown_databaseFunction · 0.85

Calls 3

getDatabaseMethod · 0.80
releaseMethod · 0.45
waitForCompletionMethod · 0.45

Tested by

no test coverage detected