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