[*] Cache Win8+ check

This commit is contained in:
Reece Wilson 2023-08-19 18:49:16 +01:00
parent 19224d2eed
commit 8874fd9810

View File

@ -363,8 +363,17 @@ namespace Aurora::Threading
}
#if defined(AURORA_IS_MODERNNT_DERIVED)
return pWaitOnAddress &&
static AuOptionalEx<bool> gIsWaitOnRecommendedCache {};
if (gIsWaitOnRecommendedCache)
{
return gIsWaitOnRecommendedCache.value();
}
bool bState = pWaitOnAddress &&
AuSwInfo::IsWindows8Point1OrGreater();
gIsWaitOnRecommendedCache = bState;
return bState;
#elif defined(AURORA_PLATFORM_LINUX)
return true;
#endif