thread_priority::windows

Function get_thread_priority

Source
pub fn get_thread_priority(native: ThreadId) -> Result<ThreadPriority, Error>
Expand description

Get the thread’s priority value.

Returns current thread’s priority.

§Usage

use thread_priority::{thread_native_id, get_thread_priority};

assert!(get_thread_priority(thread_native_id()).is_ok());