Cleanup handler that reclaims resource by calling its method 'Release'.
Declared in <llvm/Support/CrashRecoveryContext.h>
template<typename T>
class CrashRecoveryContextReleaseRefCleanup
: public CrashRecoveryContextCleanupBase<CrashRecoveryContextReleaseRefCleanup<T>, T>
| Name | Description |
|---|---|
CrashRecoveryContextCleanupBase<CrashRecoveryContextReleaseRefCleanup<T>, T> | Base class of cleanup handler that controls recovery of resources of the given type. |
| Name | Description |
|---|---|
CrashRecoveryContextReleaseRefCleanup [constructor] | Construct a Release-based cleanup for resource. |
getContext | Return the crash recovery context that owns this handler. |
recoverResources | Release the resource by calling its Release method. |
| Name | Description |
|---|---|
create | Creates cleanup handler. |
| Name | Description |
|---|---|
cleanupFired | Whether this cleanup has already been run. |
| Name | Description |
|---|---|
context | The crash recovery context that owns this cleanup handler. |
resource | Pointer to the resource recovered by this handler. |