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
|
inlinestatic |
|
inlinestaticprotected |
Checks if a pointer is aligned and can be used with atomic functions.
| Ptr | - The pointer to check. |