pub fn set_thread_affinity(cpu: usize) -> Result<(), AffinityError>
将当前线程绑定到指定 CPU 核心
cpu
Ok(())
Err(AffinityError)