current_thread_allowed_cpus

Function current_thread_allowed_cpus 

Source
pub fn current_thread_allowed_cpus() -> Result<Vec<usize>>
Expand description

Returns the list of CPUs the current thread is allowed to run on (Linux).

On non-Linux targets this returns an error.