LLVM 22.0.0git
llvm::CrashRecoveryContextCleanup Class Referenceabstract

Abstract base class of cleanup handlers. More...

#include "llvm/Support/CrashRecoveryContext.h"

Inheritance diagram for llvm::CrashRecoveryContextCleanup:
[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 132 of file CrashRecoveryContext.h.

Constructor & Destructor Documentation

◆ CrashRecoveryContextCleanup()

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

◆ ~CrashRecoveryContextCleanup()

CrashRecoveryContextCleanup::~CrashRecoveryContextCleanup ( )
virtualdefault

Member Function Documentation

◆ getContext()

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

Definition at line 144 of file CrashRecoveryContext.h.

References context, and CrashRecoveryContext.

◆ recoverResources()

◆ CrashRecoveryContext

Member Data Documentation

◆ cleanupFired

bool llvm::CrashRecoveryContextCleanup::cleanupFired = false

◆ context


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