Function scheduler::get_affinity [] [src]

pub fn get_affinity(pid: i32, num_cpus: usize) -> Result<CpuSet, ()>

Get the cpu affinity for a thread.

Create and return a CpuSet that has room for at least num_cpus and with those set according to the current affinity.