A class for easily getting CPU info.
More...
#include <cpuid.hpp>
|
| cpuid () noexcept |
| Constructor.
|
|
const core::string< ascii > & | vendor () noexcept |
| Get the CPU vendor.
|
|
int | cpus () noexcept |
| Get the number of CPUs.
|
|
int | cores () noexcept |
| Get the number of cores.
|
|
A class for easily getting CPU info.
- Examples
- cpu.cpp.
◆ cores()
int z::system::cpuid::cores |
( |
| ) |
|
|
noexcept |
Get the number of cores.
- Returns
- The number of individual cores on this machine.
- Re-Entry: This member function is thread-safe. Simultaneous calls will not cause data races, and any other thread-safe member may be called concurrently without interfering.
- Examples
- cpu.cpp.
◆ cpus()
int z::system::cpuid::cpus |
( |
| ) |
|
|
noexcept |
Get the number of CPUs.
- Returns
- The number of CPUs on this machine.
- Re-Entry: This member function is thread-safe. Simultaneous calls will not cause data races, and any other thread-safe member may be called concurrently without interfering.
- Examples
- cpu.cpp.
◆ vendor()
Get the CPU vendor.
- Returns
- A string containing the vendor CPU id.
- Re-Entry: This member function is thread-safe. Simultaneous calls will not cause data races, and any other thread-safe member may be called concurrently without interfering.
- Examples
- cpu.cpp.
The documentation for this class was generated from the following file: