FRWRecursiveAccessDetector

Same as [FRWAccessDetector](API\Runtime\Core\Misc\FRWAccessDetector), but support re-entrance on the write access See [FRWFullyRecursiveAccessDetector](API\Runtime\Core\Misc\FRWFullyRecursiveAccessDetector) for read access re-entrance when holding a write access

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/MTAccessDetector.h

Include

#include "Misc/MTAccessDetector.h"

Syntax

struct FRWRecursiveAccessDetector : public FRWAccessDetector

Remarks

Same as FRWAccessDetector, but support re-entrance on the write access See FRWFullyRecursiveAccessDetector for read access re-entrance when holding a write access

Variables

Name Description

Protected variable

int32

 

RecursiveDepth

Protected variable

uint32

 

WriterThreadID

Functions

Name Description

Public function Const

bool

 

AcquireWriteAccess()

Acquires write access, will check if there are readers or other writers

Public function Const

bool

 

ReleaseWriteAccess()

Releases write access, will check if there are readers or other writers