Skip to content

A simple thread schedule and priority library for rust

License

Notifications You must be signed in to change notification settings

mgacek8/thread-priority

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thread-priority

Build status Crates Docs MIT licensed

A simple library to control thread schedule policies and thread priority.

This crate does not support all the plaforms yet but it is inteded to be developed so, so feel free to contribute!

Supported platforms

  • Linux
  • Windows

Example

Setting current thread's priority to minimum:

use thread_priority::*;

fn main() {
    assert!(set_current_thread_priority(ThreadPriority::Min).is_ok());
}

License

This project is licensed under the MIT license.

About

A simple thread schedule and priority library for rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Rust 100.0%