| 3365 | } |
| 3366 | |
| 3367 | void 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 | |
| 3381 | void ThreadCleanup::remove(FPTR_VOID_PTR cleanup, void* arg) |
| 3382 | { |
no test coverage detected