Navigation
API > API/Runtime > API/Runtime/Core
DEPRECATED! UE atomics are not maintained and potentially will be physically deprecated. Use std::atomic
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
| Name | FGenericPlatformAtomics |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformAtomics.h |
| Include Path | #include "GenericPlatform/GenericPlatformAtomics.h" |
Syntax
struct FGenericPlatformAtomics
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool CanUseCompareExchange128 () |
GenericPlatform/GenericPlatformAtomics.h | ||
static bool IsAligned
(
const volatile void* Ptr, |
Checks if a pointer is aligned and can be used with atomic functions. | GenericPlatform/GenericPlatformAtomics.h |