pub fn set_affinity<I>(ids: I)where I: Iterator<Item = usize> + Clone + Debug,
Set the core affinity for this thread. The ID should be listed in CORES_AVAILABLE. Empty input is a no-op; prior affinity unchanged.