LLVM 20.0.0git
|
Abstract base class of cleanup handlers. More...
#include "llvm/Support/CrashRecoveryContext.h"
Public Member Functions | |
virtual | ~CrashRecoveryContextCleanup () |
virtual void | recoverResources ()=0 |
CrashRecoveryContext * | getContext () const |
Public Attributes | |
bool | cleanupFired = false |
Protected Member Functions | |
CrashRecoveryContextCleanup (CrashRecoveryContext *context) | |
Protected Attributes | |
CrashRecoveryContext * | context = nullptr |
Friends | |
class | CrashRecoveryContext |
Abstract base class of cleanup handlers.
Derived classes override method recoverResources, which makes actual work on resource recovery.
Cleanup handlers are stored in a double list, which is owned and managed by a crash recovery context.
Definition at line 127 of file CrashRecoveryContext.h.
|
inlineprotected |
Definition at line 130 of file CrashRecoveryContext.h.
|
virtualdefault |
|
inline |
Definition at line 139 of file CrashRecoveryContext.h.
References context.
Referenced by llvm::CrashRecoveryContextCleanupRegistrar< T, Cleanup >::CrashRecoveryContextCleanupRegistrar(), and llvm::CrashRecoveryContextCleanupRegistrar< T, Cleanup >::unregister().
|
pure virtual |
|
friend |
Definition at line 144 of file CrashRecoveryContext.h.
bool llvm::CrashRecoveryContextCleanup::cleanupFired = false |
Definition at line 134 of file CrashRecoveryContext.h.
Referenced by llvm::CrashRecoveryContextCleanupRegistrar< T, Cleanup >::unregister(), and llvm::CrashRecoveryContext::~CrashRecoveryContext().
|
protected |
Definition at line 129 of file CrashRecoveryContext.h.
Referenced by llvm::CrashRecoveryContextCleanupBase< Derived, T >::create(), and getContext().