CPU identification and core affinity types.
More...
CPU identification and core affinity types.
◆ core_id
Identifies a specific CPU core.
Use with std::optional<core_id> for core affinity settings, where std::nullopt means "any core".
- Note
- Only cores available on the target chip are defined. On single-core chips, only
core_0 exists.
.core_affinity = std::nullopt
Definition at line 39 of file cpu.hpp.
◆ to_string()
| std::string idfxx::to_string |
( |
core_id |
c | ) |
|
|
inline |
Returns a string representation of a CPU core identifier.
- Parameters
-
| c | The core identifier to convert. |
- Returns
- "CORE_0", "CORE_1" (on multi-core chips), or "unknown(N)" for unrecognized values.
Definition at line 52 of file cpu.hpp.
References idfxx::core_0.