A simple library to control thread schedule policies and thread priority.
This crate does not support all the plaforms yet but it is inteded to be developed so, so feel free to contribute!
- Linux
- Windows
Setting current thread's priority to minimum:
use thread_priority::*;
fn main() {
assert!(set_current_thread_priority(ThreadPriority::Min).is_ok());
}
This project is licensed under the MIT license.