(cpu: usize, cpuset: &mut RawCpuSet)
| 7 | |
| 8 | #[inline] |
| 9 | pub(crate) fn CPU_SET(cpu: usize, cpuset: &mut RawCpuSet) { |
| 10 | assert!( |
| 11 | cpu < CPU_SETSIZE, |
| 12 | "cpu out of bounds: the cpu max is {} but the cpu is {}", |
| 13 | CPU_SETSIZE, |
| 14 | cpu |
| 15 | ); |
| 16 | unsafe { c::CPU_SET(cpu, cpuset) } |
| 17 | } |
| 18 | |
| 19 | #[inline] |
| 20 | pub(crate) fn CPU_ZERO(cpuset: &mut RawCpuSet) { |