Expand description
Core enumeration and thread pinning — the helpers you need to stand up your
own thread-per-core runtime around a Pool.
Structs§
- CoreId
- This represents a CPU core.
Functions§
- affinity_
mask - The
/proc/irq/<n>/smp_affinitymask that names exactlycpu: comma-separated 32-bit hex words, most significant first. - cores
- The cores this process may run on, sorted by id, with duplicates removed.
- pin_
current - Pin the calling thread to
core. Returns whether the kernel accepted it.