core_affinity

Function set_for_current

Source
pub fn set_for_current(core_id: CoreId) -> bool
Expand description

This function tries to pin the current thread to the specified core.

ยงArguments

  • core_id - ID of the core to pin