Function thread_priority::windows::thread_priority [−][src]
pub fn thread_priority() -> Result<ThreadPriority, Error>
Expand description
Get current thread’s priority value.
Returns current thread id, which is the current OS’s native handle. It may or may not be equal or even related to rust’s thread id, there is absolutely no guarantee for that.
Usage
use thread_priority::thread_priority; assert!(thread_priority().is_ok());