Skip to main content

set_current_thread_affinity

Function set_current_thread_affinity 

Source
pub fn set_current_thread_affinity(affinity: CpuSet) -> Result<(), TaskError>
Expand description

Updates the calling thread’s affinity and completes a required migration.

A successful return guarantees that the caller is executing on a CPU in the new mask. Generic remote-thread affinity updates remain asynchronous and are completed by the remote owner’s next scheduler safe point.