#include <GenericPlatformAtomics.h>
|
static bool | IsAligned (const volatile void *Ptr, const uint32 Alignment=sizeof(void *)) |
|
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
Definition at line 23 of file GenericPlatformAtomics.h.
◆ CanUseCompareExchange128()
static FORCEINLINE bool FGenericPlatformAtomics::CanUseCompareExchange128 |
( |
| ) |
|
|
inlinestatic |
- Returns
- true, if the processor we are running on can execute compare and exchange 128-bit operation.
- See also
- cmpxchg16b, early AMD64 processors don't support this operation.
Definition at line 227 of file GenericPlatformAtomics.h.
◆ 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.
- Parameters
-
Ptr | - The pointer to check. |
- Returns
- true if the pointer is aligned, false otherwise.
Definition at line 240 of file GenericPlatformAtomics.h.
The documentation for this struct was generated from the following file:
- C:/Users/lachl/Downloads/ArkServerAPI_NEW/ASE/AseApi-main/version/Core/Public/API/UE/GenericPlatform/GenericPlatformAtomics.h