pub fn set_process_thread_priority(
pid: u64,
tid: u64,
priority: Option<Priority>,
) -> Result<Priority, Error>Expand description
Elevates the realtime priority of a specified processes 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.