-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration tests and split thread priority getter.
1. Adds the integration tests for all supported platforms and common workflows. 2. Breaks the compatibility with previous versions due to splitting the public interface's "thread_priority" function into two separate ones: one for getting the value for the current thread and another one for getting the value of priority for the thread specified as an argument.
- Loading branch information
Showing
7 changed files
with
266 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "thread-priority" | ||
version = "0.5.0" | ||
version = "0.6.0" | ||
authors = ["Victor Polevoy <[email protected]>"] | ||
description = "Library for managing threads priority and schedule policies" | ||
repository = "https://github.com/vityafx/thread-priority" | ||
|
@@ -11,8 +11,12 @@ keywords = ["thread", "schedule", "priority", "pthread"] | |
categories = ["concurrency", "asynchronous", "os"] | ||
edition = "2018" | ||
|
||
[dev-dependencies] | ||
rstest = "0.12" | ||
|
||
[dependencies] | ||
log = "0.4" | ||
const_format = "0.2" | ||
|
||
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies] | ||
libc = "0.2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#[cfg(any( | ||
target_os = "linux", | ||
target_os = "macos", | ||
target_os = "dragonfly", | ||
target_os = "freebsd", | ||
target_os = "openbsd", | ||
target_os = "netbsd" | ||
))] | ||
mod unix; | ||
#[cfg(windows)] | ||
mod windows; |
Oops, something went wrong.