pub fn pin_current_thread(core: usize) -> Result<()>
Pin the calling thread to core via libc::sched_setaffinity.
core
libc::sched_setaffinity
Returns Ok(()) on success, or an io::Error if affinity could not be set.
Ok(())
io::Error