Navigation
Unreal Engine C++ API Reference > Runtime > Chaos > Framework
References
Module | Chaos |
Header | /Engine/Source/Runtime/Experimental/Chaos/Public/Framework/Threading.h |
Include | #include "Framework/Threading.h" |
Syntax
class FPhysicsSceneGuard
Remarks
Recursive Read/Write lock object for protecting external data accesses for physics scenes. This is a fairly heavy lock designed to allow scene queries and user code to safely access external physics data.
The lock also allows a thread to recursively lock data to avoid deadlocks on repeated writes or undefined behavior for nesting read locks.
Fairness is determined by the underlying platform FRWLock type as this lock uses FRWLock as it's internal primitive
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
FPhysicsSceneGuard
(
const FPhysicsSceneGuard& InOther |
||
![]() |
FPhysicsSceneGuard
(
FPhysicsSceneGuard&& InOther |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | ReadLock () |
|
![]() |
void | ReadUnlock () |
|
![]() |
void | WriteLock () |
|
![]() |
void | WriteUnlock () |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FPhysicsSceneGuard & | operator=
(
const FPhysicsSceneGuard& InOther |
|
![]() |
FPhysicsSceneGuard & | operator=
(
FPhysicsSceneGuard&& InOther |