pub fn set_for_current(core_id: CoreId) -> bool
This function tries to pin the current thread to the specified core.