[−][src]Function thread_priority::windows::set_current_thread_priority
pub fn set_current_thread_priority(
priority: ThreadPriority
) -> Result<(), Error>
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.