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

Method add

src/yvalve/utl.cpp:3367–3379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3365}
3366
3367void ThreadCleanup::add(FPTR_VOID_PTR cleanup, void* arg)
3368{
3369 Firebird::MutexLockGuard guard(cleanupMutex, FB_FUNCTION);
3370
3371 initThreadCleanup();
3372
3373 if (findCleanup(cleanup, arg))
3374 {
3375 return;
3376 }
3377
3378 chain = FB_NEW_POOL(*getDefaultMemoryPool()) ThreadCleanup(cleanup, arg, chain);
3379}
3380
3381void ThreadCleanup::remove(FPTR_VOID_PTR cleanup, void* arg)
3382{

Callers 6

startMethod · 0.45
buildPrepareInfoMethod · 0.45
prepareCommitMethod · 0.45
joinMethod · 0.45
addWithTpbMethod · 0.45
addPluginMethod · 0.45

Calls 2

getDefaultMemoryPoolFunction · 0.85
ThreadCleanupClass · 0.85

Tested by

no test coverage detected