Navigation
API > API/Runtime > API/Runtime/Chaos
A non-yielding, recursive spin lock Implements a first-in, first-out lock / mutex that won't yield back to the system. Intended for applications that must wake / resume at the earliest opportunity. Each thread attempting a write gets an atomically controlled counter to wait on so the lock is fair in that the locks will be ordered according to the order Lock was called.
| Name | FPhysSpinLock |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Framework/Threading.h |
| Include Path | #include "Framework/Threading.h" |
Syntax
class FPhysSpinLock
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPhysSpinLock() |
Framework/Threading.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Count | uint32 | Framework/Threading.h | ||
| Current | std::atomic< uint32 > | Framework/Threading.h | ||
| Next | std::atomic< uint32 > | Framework/Threading.h | ||
| WriterId | std::atomic< uint32 > | Framework/Threading.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Lock() |
Framework/Threading.h | ||
void Unlock() |
Framework/Threading.h |