Crate thread_priority[−][src]
Expand description
Thread priority. A library for changing thread’s priority.
Usage
Setting thread priority to minimum:
use thread_priority::*; assert!(set_current_thread_priority(ThreadPriority::Min).is_ok()); // Or like this: assert!(ThreadPriority::Min.set_for_current().is_ok());
Re-exports
pub use unix::*; |
Modules
unix | This module defines the unix thread control. |
Structs
Thread | Represents an OS thread. |
Enums
Error | A error type |
ThreadPriority | Thread priority enumeration. |