pub fn pin_current_thread_to_core(core: usize) -> bool
Pin the calling thread to a single logical core. Returns true if the affinity was actually set.
true