Lines Matching refs:cleanup
98 void CrashRecoveryContext::registerCleanup(CrashRecoveryContextCleanup *cleanup) in registerCleanup() argument
100 if (!cleanup) in registerCleanup()
103 head->prev = cleanup; in registerCleanup()
104 cleanup->next = head; in registerCleanup()
105 head = cleanup; in registerCleanup()
109 CrashRecoveryContext::unregisterCleanup(CrashRecoveryContextCleanup *cleanup) { in unregisterCleanup() argument
110 if (!cleanup) in unregisterCleanup()
112 if (cleanup == head) { in unregisterCleanup()
113 head = cleanup->next; in unregisterCleanup()
118 cleanup->prev->next = cleanup->next; in unregisterCleanup()
119 if (cleanup->next) in unregisterCleanup()
120 cleanup->next->prev = cleanup->prev; in unregisterCleanup()
122 delete cleanup; in unregisterCleanup()