Fix Platform::GetCacheLineSize to be deprecated in favor of CPUInfo
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user