|
ThreadSchedule 1.0.0
Modern C++ thread management library
|
Snapshot of basic CPU/NUMA topology. More...
#include <topology.hpp>
Public Attributes | |
| int | cpu_count {0} |
| int | numa_nodes {1} |
| std::vector< std::vector< int > > | node_to_cpus |
Snapshot of basic CPU/NUMA topology.
Value type (copyable). Populated by read_topology().
cpu_count: total logical CPUs (from std::thread::hardware_concurrency).numa_nodes: number of NUMA nodes (always 1 on Windows; detected via /sys/devices/system/node/ on Linux).node_to_cpus: mapping from NUMA node index to the set of logical CPU indices belonging to that node. Definition at line 38 of file topology.hpp.
| int threadschedule::CpuTopology::cpu_count {0} |
Definition at line 40 of file topology.hpp.
| std::vector<std::vector<int> > threadschedule::CpuTopology::node_to_cpus |
Definition at line 42 of file topology.hpp.
| int threadschedule::CpuTopology::numa_nodes {1} |
Definition at line 41 of file topology.hpp.