Module affinity

Source
Expand description

Thread affinity support for Linux.

Structs§

CpuSet
A [libc::cpu_set_t] sized appropriately to the number of processors on this machine.
InvalidCpuList
InvalidHexString

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.