Navigation
API > API/Runtime > API/Runtime/Core
A mutex that doesn't put the thread into a WAIT state but instead repeatedly tries to aquire the lock. WARNING: Should be used only for very short locks Use with `TScopeLock_
| Name | FSpinLock |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/SpinLock.h |
| Include Path | #include "Misc/SpinLock.h" |
Syntax
class FSpinLock
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSpinLock () |
Misc/SpinLock.h | ||
| Misc/SpinLock.h | |||
| Misc/SpinLock.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bFlag | std::atomic< bool > | Misc/SpinLock.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Lock() |
Misc/SpinLock.h | ||
bool TryLock() |
Misc/SpinLock.h | ||
void Unlock() |
Misc/SpinLock.h |