LLVM  12.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
Collaboration diagram for llvm::CrashRecoveryContextCleanup:
Collaboration graph

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


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 121 of file CrashRecoveryContext.h.

Constructor & Destructor Documentation

◆ CrashRecoveryContextCleanup()

llvm::CrashRecoveryContextCleanup::CrashRecoveryContextCleanup ( CrashRecoveryContext context)

Definition at line 124 of file CrashRecoveryContext.h.

◆ ~CrashRecoveryContextCleanup()

CrashRecoveryContextCleanup::~CrashRecoveryContextCleanup ( )

Definition at line 98 of file CrashRecoveryContext.cpp.

Member Function Documentation

◆ getContext()

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

◆ recoverResources()

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

Friends And Related Function Documentation

◆ CrashRecoveryContext

friend class CrashRecoveryContext

Definition at line 138 of file CrashRecoveryContext.h.

Member Data Documentation

◆ cleanupFired

bool llvm::CrashRecoveryContextCleanup::cleanupFired = false

◆ context

CrashRecoveryContext* llvm::CrashRecoveryContextCleanup::context = nullptr

Definition at line 123 of file CrashRecoveryContext.h.

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