Convert CPU caps into a global instead of MT safe global

This commit is contained in:
lizzie 2026-05-23 21:08:24 +00:00
parent f40da0638b
commit 98232563e9
9 changed files with 31 additions and 35 deletions

View file

@ -70,11 +70,8 @@ struct CPUCaps {
bool waitpkg : 1;
};
/**
* Gets the supported capabilities of the host CPU
* @return Reference to a CPUCaps struct with the detected host CPU capabilities
*/
const CPUCaps& GetCPUCaps();
/// @brief Global cpu caps
extern const CPUCaps g_cpu_caps;
/// Detects CPU core count
std::optional<int> GetProcessorCount();