Struct CpuPolicy
Defined in File worker-pool.h
Struct Documentation
-
struct CpuPolicy
Requested eligible CPUs and optional cache/locality constraints; unsupported NUMA requirements do not imply memory-placement support.
Public Members
-
std::vector<unsigned int> cpus
Explicit OS logical CPU IDs; empty selects inherited eligible capacity.
-
PolicyStrength strength = PolicyStrength::Preferred
Whether unsupported placement may fall back or must reject.
-
bool prefer_same_worker = true
Tie-break preference for the worker that last ran this group, not an affinity guarantee.
Requested provider snapshot cache ID, not a cache-level number.
-
std::optional<unsigned int> numa_node
Requested NUMA identity; placement is currently unavailable.
-
std::optional<LocalityPolicy> locality
Absent chooses Automatic with a provider, ordinary affinity otherwise; explicit choices need topology/binding.
-
std::vector<unsigned int> cpus