Function scheduler::set_affinity [] [src]

pub fn set_affinity(pid: i32, cpuset: CpuSet) -> Result<(), ()>

Set the cpu affinity for a thread.