mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-27 06:27:03 +02:00
Convert CPU caps into a global instead of MT safe global
This commit is contained in:
parent
f40da0638b
commit
98232563e9
9 changed files with 31 additions and 35 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue