Function thread_priority::windows::set_current_thread_priority [−][src]
pub fn set_current_thread_priority(
priority: ThreadPriority
) -> Result<(), Error>
Expand description
Set current thread’s priority.
- May require privileges
Usage
Setting thread priority to minimum:
use thread_priority::*; assert!(set_current_thread_priority(ThreadPriority::Min).is_ok());
If there’s an error, a result of
GetLastError
is returned.