Fix Platform::GetCacheLineSize to be deprecated in favor of CPUInfo

This commit is contained in:
Wojtek Figat
2025-03-04 22:57:58 +01:00
parent 668511a727
commit 06665734e7
10 changed files with 7 additions and 25 deletions

View File

@@ -257,6 +257,11 @@ bool PlatformBase::Is64BitApp()
#endif
}
int32 PlatformBase::GetCacheLineSize()
{
return (int32)Platform::GetCPUInfo().CacheLineSize;
}
void PlatformBase::Fatal(const Char* msg, void* context)
{
// Check if is already during fatal state

View File

@@ -357,9 +357,10 @@ public:
/// <summary>
/// Gets the CPU cache line size.
/// [Deprecated in v1.10]
/// </summary>
/// <returns>The cache line size.</returns>
API_PROPERTY() static int32 GetCacheLineSize() = delete;
API_PROPERTY() DEPRECATED("Use CacheLineSize field from CPUInfo.") static int32 GetCacheLineSize();
/// <summary>
/// Gets the current memory stats.