engine
 
载入中...
搜索中...
未找到
静态 Public 成员函数 | 所有成员列表
FHoloLensAtomics结构体 参考

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

成员函数说明

◆ InterlockedCompareExchangePointer()

static FORCEINLINE void * FHoloLensAtomics::InterlockedCompareExchangePointer ( void *volatile *  Dest,
void *  Exchange,
void *  Comparand 
)
inlinestatic

The function compares the Destination value with the Comparand value:

  • If the Destination value is equal to the Comparand value, the Exchange value is stored in the address specified by Destination,
  • Otherwise, the initial value of the Destination parameter is stored in the address specified specified by Comparand.
返回
true if Comparand equals the original value of the Destination parameter, or false if Comparand does not equal the original value of the Destination parameter.

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


该结构体的文档由以下文件生成: