[*] Cache Win8+ check
This commit is contained in:
parent
19224d2eed
commit
8874fd9810
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user