Function scheduler::core_affinity
source ยท pub fn core_affinity() -> Option<u32>
Expand description
Get the core affinity of the current thread, as set by the active scheduler. Will be None
if
the scheduler is not using CPU pinning, or if called from a thread not owned by the scheduler.