Lines Matching refs:cleanup
105 void CrashRecoveryContext::registerCleanup(CrashRecoveryContextCleanup *cleanup) in registerCleanup() argument
107 if (!cleanup) in registerCleanup()
110 head->prev = cleanup; in registerCleanup()
111 cleanup->next = head; in registerCleanup()
112 head = cleanup; in registerCleanup()
116 CrashRecoveryContext::unregisterCleanup(CrashRecoveryContextCleanup *cleanup) { in unregisterCleanup() argument
117 if (!cleanup) in unregisterCleanup()
119 if (cleanup == head) { in unregisterCleanup()
120 head = cleanup->next; in unregisterCleanup()
125 cleanup->prev->next = cleanup->next; in unregisterCleanup()
126 if (cleanup->next) in unregisterCleanup()
127 cleanup->next->prev = cleanup->prev; in unregisterCleanup()
129 delete cleanup; in unregisterCleanup()