| 3379 | } |
| 3380 | |
| 3381 | void ThreadCleanup::remove(FPTR_VOID_PTR cleanup, void* arg) |
| 3382 | { |
| 3383 | MutexLockGuard guard(cleanupMutex, FB_FUNCTION); |
| 3384 | |
| 3385 | ThreadCleanup** ptr = findCleanup(cleanup, arg); |
| 3386 | if (!ptr) |
| 3387 | { |
| 3388 | return; |
| 3389 | } |
| 3390 | |
| 3391 | ThreadCleanup* toDelete = *ptr; |
| 3392 | *ptr = toDelete->next; |
| 3393 | delete toDelete; |
| 3394 | } |
| 3395 | |
| 3396 | class ThreadBuffer : public GlobalStorage |
| 3397 | { |
no outgoing calls
no test coverage detected