set_thread_nice_level

Function set_thread_nice_level 

Source
pub fn set_thread_nice_level(
    tid: u64,
    nice_level: Option<NiceLevel>,
) -> Result<NiceLevel, Error>
Expand description

Elevates the nice level of a thread as close as possible to the requested nice level.

If no nice level is specified, the maximum nice level allowed by the system will be used.

Returns the actual nice level that was set.