MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / CPU_SET

Function CPU_SET

src/backend/libc/thread/cpu_set.rs:9–17  ·  view source on GitHub ↗
(cpu: usize, cpuset: &mut RawCpuSet)

Source from the content-addressed store, hash-verified

7
8#[inline]
9pub(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]
20pub(crate) fn CPU_ZERO(cpuset: &mut RawCpuSet) {

Callers 1

setMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected