engine
 
载入中...
搜索中...
未找到
静态 Public 成员函数 | 静态 Protected 成员函数 | 所有成员列表
FGenericPlatformAtomics结构体 参考

DEPRECATED! UE atomics are not maintained and potentially will be physically deprecated. 更多...

#include <GenericPlatformAtomics.h>

+ 类 FGenericPlatformAtomics 继承关系图:

静态 Public 成员函数

static FORCEINLINE bool CanUseCompareExchange128 ()
 

静态 Protected 成员函数

static bool IsAligned (const volatile void *Ptr, const uint32 Alignment=sizeof(void *))
 Checks if a pointer is aligned and can be used with atomic functions. 更多...
 

详细描述

DEPRECATED! UE atomics are not maintained and potentially will be physically deprecated.

Use std::atomic<T> for new code

Generic implementation...you are required to implement at least FPlatformAtomics::InterlockedCompareExchange but they are listed here to provide a base implementation in terms of FPlatformAtomics::InterlockedCompareExchange and easy copy-paste

成员函数说明

◆ CanUseCompareExchange128()

static FORCEINLINE bool FGenericPlatformAtomics::CanUseCompareExchange128 ( )
inlinestatic
返回
true, if the processor we are running on can execute compare and exchange 128-bit operation.
参见
cmpxchg16b, early AMD64 processors don't support this operation.

◆ IsAligned()

static bool FGenericPlatformAtomics::IsAligned ( const volatile void *  Ptr,
const uint32  Alignment = sizeof(void*) 
)
inlinestaticprotected

Checks if a pointer is aligned and can be used with atomic functions.

参数
Ptr- The pointer to check.
返回
true if the pointer is aligned, false otherwise.

该结构体的文档由以下文件生成: