HoloLens implementation of the Atomics OS functions 更多...
#include <HoloLensPlatformAtomics.h>
类 FHoloLensAtomics 继承关系图:静态 Public 成员函数 | |
| static FORCEINLINE void * | InterlockedCompareExchangePointer (void *volatile *Dest, void *Exchange, void *Comparand) |
| The function compares the Destination value with the Comparand value: 更多... | |
静态 Public 成员函数 继承自 FGenericPlatformAtomics | |
| static FORCEINLINE bool | CanUseCompareExchange128 () |
额外继承的成员函数 | |
静态 Protected 成员函数 继承自 FGenericPlatformAtomics | |
| 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. 更多... | |
HoloLens implementation of the Atomics OS functions
|
inlinestatic |
The function compares the Destination value with the Comparand value:
Early AMD64 processors lacked the CMPXCHG16B instruction. To determine whether the processor supports this operation, call the IsProcessorFeaturePresent function with PF_COMPARE64_EXCHANGE128. Atomically compares the pointer to comparand and replaces with the exchange pointer if they are equal and returns the original value