Struct nix::sched::CpuSet [−][src]
#[repr(C)]pub struct CpuSet { /* fields omitted */ }
Expand description
CpuSet represent a bit-mask of CPUs. CpuSets are used by sched_setaffinity and sched_getaffinity for example.
This is a wrapper around libc::cpu_set_t
.
Implementations
Test to see if a CPU is in the CpuSet.
field
is the CPU id to test
Add a CPU to CpuSet.
field
is the CPU id to add
Remove a CPU from CpuSet.
field
is the CPU id to remove
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CpuSet
impl UnwindSafe for CpuSet
Blanket Implementations
Mutably borrows from an owned value. Read more