浏览该文件的文档.
36 #if defined(AK_MONITORX_SUPPORTED)
39 #elif (defined __clang__ || defined __GNUC__)
40 #include <x86intrin.h>
42 #endif // defined(AK_MONITORX_SUPPORTED)
44 #if !defined(AK_NULL_PLATFORM)
48 #if defined(AK_MONITORX_SUPPORTED)
63 _mm_monitorx((
void*)in_pVal, 0U, 0U);
70 _mm_mwaitx(2U, 0U, 1000U);
74 if (currentTime > endSpinTime)
99 _mm_monitorx((
void*)in_pVal, 0U, 0U);
106 _mm_mwaitx(2U, 0U, 1000U);
110 if (currentTime > endSpinTime)
135 if (currentTime > endSpinTime)
167 if (currentTime > endSpinTime)
173 #endif // !defined(AK_MONITORX_SUPPORTED)
Platform-dependent helpers
volatile int32_t AkAtomic32
int32_t AkInt32
Signed 32-bit integer
void PerformanceCounter(AkInt64 *out_piLastTime)
Platform Independent Helper
void AkLimitedSpinForZero(AkAtomic32 *in_pVal)
bool AkLimitedSpinToAcquire(AkAtomic32 *in_pVal, AkInt32 in_proposed, AkInt32 in_expected)
int64_t AkInt64
Signed 64-bit integer
void AkSpinToAcquire(AkAtomic32 *in_pVal, AkInt32 in_proposed, AkInt32 in_expected)
void AkSpinWaitForZero(AkAtomic32 *in_pVal)
介绍一下自己的项目。我们会竭力为您提供帮助。
来注册自己的项目,我们帮您快速入门,不带任何附加条件!
开始 Wwise 之旅