Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
FGenericPlatformAtomics Struct Reference

#include <GenericPlatformAtomics.h>

+ Inheritance diagram for FGenericPlatformAtomics:

Static Public Member Functions

static FORCEINLINE bool CanUseCompareExchange128 ()
 

Static Protected Member Functions

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

Detailed Description

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.

Member Function Documentation

◆ 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: