set_thread_priority

Function set_thread_priority 

Source
pub fn set_thread_priority(
    tid: u64,
    priority: Option<Priority>,
) -> Result<Priority, Error>
Expand description

Elevates the realtime priority of a thread as close as possible to the requested priority.

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

Returns the actual priority that was set.