Thread safe bool, wraps FThreadSafeCounter
更多...
#include <ThreadSafeBool.h>
|
| FORCEINLINE bool | AtomicSet (bool bNewValue) |
| | Sets a new value atomically, and returns the old value. 更多...
|
| |
| | FThreadSafeBool (bool bValue=false) |
| | Constructor optionally takes value to initialize with, otherwise initializes false 更多...
|
| |
|
FORCEINLINE | operator bool () const |
| | Operator to use this struct as a bool with thread safety
|
| |
|
FORCEINLINE bool | operator= (bool bNewValue) |
| | Operator to set the bool value with thread safety
|
| |
Thread safe bool, wraps FThreadSafeCounter
◆ FThreadSafeBool()
| FThreadSafeBool::FThreadSafeBool |
( |
bool |
bValue = false | ) |
|
|
inline |
Constructor optionally takes value to initialize with, otherwise initializes false
- 参数
-
| bValue | Value to initialize with |
◆ AtomicSet()
| FORCEINLINE bool FThreadSafeBool::AtomicSet |
( |
bool |
bNewValue | ) |
|
|
inline |
Sets a new value atomically, and returns the old value.
- 参数
-
- 返回
- The old value
该类的文档由以下文件生成: