Expand description
Thread affinity support for Linux.
Structs§
- CpuSet
- A [
libc::cpu_set_t
] sized appropriately to the number of processors on this machine. - Invalid
CpuList - Invalid
HexString
Functions§
- get_
cpu_ number - Returns the number of the processor the current thread was running on during the call to this function.
- get_
current_ thread_ affinity - Gets the current thread’s affinity.
- max_
present_ cpu - Returns the maximum CPU number of any present (but not necessarily online) processor.
- max_
procs - Returns the kernel compiled-in maximum number of processors.
- num_
procs - Returns the total number of online processors.
- set_
current_ thread_ affinity - Sets the current thread’s affinity.