diff options
author | Mai <mathew1800@gmail.com> | 2022-11-12 03:19:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-12 03:19:26 +0000 |
commit | 7dfe35eca69c5c59f32c8ffa3d3adc5e7806c011 (patch) | |
tree | 54367d6738c02d478841563db0436dc99f46e240 /src/common/x64/cpu_detect.h | |
parent | e4d55e4ee46403bf8d32f6bce21eb932a348f473 (diff) | |
parent | 69768ec71e78dd1ea8da835b0a4eedbb1d404c28 (diff) |
Merge pull request #9231 from goldenx86/corecount
Add CPU core count to log files
Diffstat (limited to 'src/common/x64/cpu_detect.h')
-rw-r--r-- | src/common/x64/cpu_detect.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/x64/cpu_detect.h b/src/common/x64/cpu_detect.h index 6830f3795..ca8db19d6 100644 --- a/src/common/x64/cpu_detect.h +++ b/src/common/x64/cpu_detect.h @@ -4,6 +4,7 @@ #pragma once +#include <optional> #include <string_view> #include "common/common_types.h" @@ -74,4 +75,7 @@ struct CPUCaps { */ const CPUCaps& GetCPUCaps(); +/// Detects CPU core count +std::optional<int> GetProcessorCount(); + } // namespace Common |