thread-priority 0.10.0

Library for managing threads priority and schedule policies
Documentation
1
2
3
4
5
6
7
8
use rstest::rstest;

#[rstest]
fn should_be_possible_to_reset_the_same_priority() {
    let current = thread_priority::get_current_thread_priority().unwrap();
    let set_result = thread_priority::set_current_thread_priority(current);
    assert_eq!(set_result, Ok(()));
}