axtask

Function set_current_affinity

Source
pub fn set_current_affinity(cpumask: AxCpuMask) -> bool
Available on crate feature multitask only.
Expand description

Set the affinity for the current task. AxCpuMask is used to specify the CPU affinity. Returns true if the affinity is set successfully.

TODO: support set the affinity for other tasks.