LLVM 20.0.0git
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
llvm::CrashRecoveryContextCleanup Class Referenceabstract

Abstract base class of cleanup handlers. More...

#include "llvm/Support/CrashRecoveryContext.h"

Inheritance diagram for llvm::CrashRecoveryContextCleanup:
Inheritance graph
[legend]

Public Member Functions

virtual ~CrashRecoveryContextCleanup ()
 
virtual void recoverResources ()=0
 
CrashRecoveryContextgetContext () const
 

Public Attributes

bool cleanupFired = false
 

Protected Member Functions

 CrashRecoveryContextCleanup (CrashRecoveryContext *context)
 

Protected Attributes

CrashRecoveryContextcontext = nullptr
 

Friends

class CrashRecoveryContext
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CrashRecoveryContextCleanup()

llvm::CrashRecoveryContextCleanup::CrashRecoveryContextCleanup ( CrashRecoveryContext context)
inlineprotected

Definition at line 130 of file CrashRecoveryContext.h.

◆ ~CrashRecoveryContextCleanup()

CrashRecoveryContextCleanup::~CrashRecoveryContextCleanup ( )
virtualdefault

Member Function Documentation

◆ getContext()

CrashRecoveryContext * llvm::CrashRecoveryContextCleanup::getContext ( ) const
inline

◆ recoverResources()

virtual void llvm::CrashRecoveryContextCleanup::recoverResources ( )
pure virtual

Friends And Related Function Documentation

◆ CrashRecoveryContext

friend class CrashRecoveryContext
friend

Definition at line 144 of file CrashRecoveryContext.h.

Member Data Documentation

◆ cleanupFired

bool llvm::CrashRecoveryContextCleanup::cleanupFired = false

◆ context

CrashRecoveryContext* llvm::CrashRecoveryContextCleanup::context = nullptr
protected

The documentation for this class was generated from the following files: