Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/HAL
Inheritance Hierarchy
- FThreadSafeCounter
- FThreadSafeBool
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/HAL/ThreadSafeBool.h |
| Include | #include "HAL/ThreadSafeBool.h" |
Syntax
class FThreadSafeBool : private FThreadSafeCounter
Remarks
Thread safe bool, wraps FThreadSafeCounter
Constructors
| Type | Name | Description | |
|---|---|---|---|
FThreadSafeBool
(
bool bValue |
Constructor optionally takes value to initialize with, otherwise initializes false |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AtomicSet
(
bool bNewValue |
Sets a new value atomically, and returns the old value. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| Operator to use this struct as a bool with thread safety | |||
| bool | operator=
(
bool bNewValue |
Operator to set the bool value with thread safety |