Lines Matching refs:cleanup
117 void CrashRecoveryContext::registerCleanup(CrashRecoveryContextCleanup *cleanup) in registerCleanup() argument
119 if (!cleanup) in registerCleanup()
122 head->prev = cleanup; in registerCleanup()
123 cleanup->next = head; in registerCleanup()
124 head = cleanup; in registerCleanup()
128 CrashRecoveryContext::unregisterCleanup(CrashRecoveryContextCleanup *cleanup) { in unregisterCleanup() argument
129 if (!cleanup) in unregisterCleanup()
131 if (cleanup == head) { in unregisterCleanup()
132 head = cleanup->next; in unregisterCleanup()
137 cleanup->prev->next = cleanup->next; in unregisterCleanup()
138 if (cleanup->next) in unregisterCleanup()
139 cleanup->next->prev = cleanup->prev; in unregisterCleanup()
141 delete cleanup; in unregisterCleanup()