Skip to main content

set_affinity

Function set_affinity 

Source
pub fn set_affinity<I>(ids: I)
where I: Iterator<Item = usize> + Clone + Debug,
Expand description

Set the core affinity for this thread. The ID should be listed in CORES_AVAILABLE. Empty input is a no-op; prior affinity unchanged.