LLVM 22.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 132 of file CrashRecoveryContext.h.
|
inlineprotected |
Definition at line 135 of file CrashRecoveryContext.h.
References context, and CrashRecoveryContext.
Referenced by CrashRecoveryContext, and llvm::CrashRecoveryContextCleanupBase< Derived, T >::CrashRecoveryContextCleanupBase().
|
virtualdefault |
|
inline |
Definition at line 144 of file CrashRecoveryContext.h.
References context, and CrashRecoveryContext.
|
pure virtual |
|
friend |
Definition at line 149 of file CrashRecoveryContext.h.
References CrashRecoveryContext, and CrashRecoveryContextCleanup().
Referenced by CrashRecoveryContext, CrashRecoveryContextCleanup(), llvm::CrashRecoveryContextCleanupBase< Derived, T >::CrashRecoveryContextCleanupBase(), llvm::CrashRecoveryContextCleanupBase< Derived, T >::create(), and getContext().
bool llvm::CrashRecoveryContextCleanup::cleanupFired = false |
Definition at line 139 of file CrashRecoveryContext.h.
Referenced by llvm::CrashRecoveryContext::~CrashRecoveryContext().
|
protected |
Definition at line 134 of file CrashRecoveryContext.h.
Referenced by CrashRecoveryContextCleanup(), llvm::CrashRecoveryContextCleanupBase< Derived, T >::CrashRecoveryContextCleanupBase(), llvm::CrashRecoveryContextDeleteCleanup< T >::CrashRecoveryContextDeleteCleanup(), llvm::CrashRecoveryContextDestructorCleanup< T >::CrashRecoveryContextDestructorCleanup(), llvm::CrashRecoveryContextReleaseRefCleanup< T >::CrashRecoveryContextReleaseRefCleanup(), llvm::CrashRecoveryContextCleanupBase< Derived, T >::create(), and getContext().