Go to the documentation of this file.
36 #if defined(AK_XBOXSERIESX) // monitorx/waitx is not available on XB1 hardware, only XSX
49 _mm_monitorx((
void*)in_pVal, 0U, 0U);
56 _mm_mwaitx(2U, 0U, 1000U);
60 if (currentTime > endSpinTime)
86 _mm_monitorx((
void*)in_pVal, 0U, 0U);
93 _mm_mwaitx(2U, 0U, 1000U);
97 if (currentTime > endSpinTime)
104 #define AK_LIMITEDSPINFORZERO // mark AkLimitedSpinForZero as defined to avoid duplicate definitions
105 #endif // defined(AK_XBOXSERIESX)
Platform-dependent helpers.
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.
Tell us about your project. We're here to help.
Register your project and we'll help you get started with no strings attached!
Get started with Wwise