![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ThreadSafeBool.h>
Inheritance diagram for FThreadSafeBool:Public Member Functions | |
| FThreadSafeBool (bool bValue=false) | |
| UE_FORCEINLINE_HINT | operator bool () const |
| bool | operator= (bool bNewValue) |
| UE_FORCEINLINE_HINT bool | AtomicSet (bool bNewValue) |
Thread safe bool, wraps FThreadSafeCounter
Constructor optionally takes value to initialize with, otherwise initializes false
| bValue | Value to initialize with |
|
inline |
Sets a new value atomically, and returns the old value.
| bNewValue | Value to set |
|
inline |
Operator to use this struct as a bool with thread safety
Operator to set the bool value with thread safety