Expand description
CPU affinity API. Platform routing by target_os.
On Linux this module delegates to the internal syscalls::pin_to_cpus
/ syscalls::get_cpus. On other targets every
function returns Unsupported.
Functionsยง
- current_
thread_ cpus - Returns the CPUs on which the calling thread is allowed to run.
- pin_
current_ thread_ to_ cpus - Pins the calling thread to the given CPU indices.