Library for managing threads priority and schedule policies.
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
use thread_priority::set_current_thread_priority;
Sets the priority of the current thread.
use thread_priority::*;
fn main() {
let priority = ThreadPriority::Crossplatform(ThreadPriorityValue::try_from(5).unwrap());
set_current_thread_priority(priority).unwrap();
println!("Priority set!");
}
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.
Agent activity
0 hits · last 30 days
No traffic data recorded yet.