LLVM  8.0.1
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]
Collaboration diagram for llvm::CrashRecoveryContextCleanup:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

bool cleanupFired
 

Protected Member Functions

 CrashRecoveryContextCleanup (CrashRecoveryContext *context)
 

Protected Attributes

CrashRecoveryContextcontext
 

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

Constructor & Destructor Documentation

◆ CrashRecoveryContextCleanup()

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

Definition at line 116 of file CrashRecoveryContext.h.

◆ ~CrashRecoveryContextCleanup()

CrashRecoveryContextCleanup::~CrashRecoveryContextCleanup ( )
virtual

Definition at line 84 of file CrashRecoveryContext.cpp.

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

Member Data Documentation

◆ cleanupFired

bool llvm::CrashRecoveryContextCleanup::cleanupFired

◆ context

CrashRecoveryContext* llvm::CrashRecoveryContextCleanup::context
protected

Definition at line 115 of file CrashRecoveryContext.h.


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