LLVM
8.0.1
|
Base class of cleanup handler that controls recovery of resources of the given type. More...
#include "llvm/Support/CrashRecoveryContext.h"
Static Public Member Functions | |
static Derived * | create (T *x) |
Creates cleanup handler. More... | |
Protected Member Functions | |
CrashRecoveryContextCleanupBase (CrashRecoveryContext *context, T *resource) | |
Protected Member Functions inherited from llvm::CrashRecoveryContextCleanup | |
CrashRecoveryContextCleanup (CrashRecoveryContext *context) | |
Protected Attributes | |
T * | resource |
Protected Attributes inherited from llvm::CrashRecoveryContextCleanup | |
CrashRecoveryContext * | context |
Additional Inherited Members | |
Public Member Functions inherited from llvm::CrashRecoveryContextCleanup | |
virtual | ~CrashRecoveryContextCleanup () |
virtual void | recoverResources ()=0 |
CrashRecoveryContext * | getContext () const |
Public Attributes inherited from llvm::CrashRecoveryContextCleanup | |
bool | cleanupFired |
Base class of cleanup handler that controls recovery of resources of the given type.
This class serves as a base for its template parameter as implied by Curiously Recurring Template Pattern.
This class factors out creation of a cleanup handler. The latter requires knowledge of the current recovery context, which is provided by this class.
Definition at line 146 of file CrashRecoveryContext.h.
|
inlineprotected |
Definition at line 149 of file CrashRecoveryContext.h.
|
inlinestatic |
Creates cleanup handler.
x | Pointer to the resource recovered by this handler. |
Definition at line 157 of file CrashRecoveryContext.h.
|
protected |
Definition at line 148 of file CrashRecoveryContext.h.