Skip to main content

increase_thread_priority

Function increase_thread_priority 

Source
pub fn increase_thread_priority()
Available on crate feature tasks only.
Expand description

Increases the current thread’s priority.

Tries ThreadPriority::Max first. If that fails (e.g. missing CAP_SYS_NICE), falls back to a moderate bump via ThreadPriority::Crossplatform (~5 nice points on unix). Failures are logged at debug level.