engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FThreadSafeBool类 参考

Thread safe bool, wraps FThreadSafeCounter 更多...

#include <ThreadSafeBool.h>

+ 类 FThreadSafeBool 继承关系图:

Public 成员函数

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

参数
bValueValue to initialize with

成员函数说明

◆ AtomicSet()

FORCEINLINE bool FThreadSafeBool::AtomicSet ( bool  bNewValue)
inline

Sets a new value atomically, and returns the old value.

参数
bNewValueValue to set
返回
The old value

该类的文档由以下文件生成: