summaryrefslogtreecommitdiff
path: root/src/sched.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-05-16 02:03:39 +0000
committerGitHub <noreply@github.com>2021-05-16 02:03:39 +0000
commitb4d4b3183b75addf7cad83c57994a62a89235ed4 (patch)
tree544124f2d24abffb791c615417da4b840f0d3cf1 /src/sched.rs
parentb535457f225a928ec4243addd6c25c500dc99578 (diff)
parentb39dbdd982c9998b9a6b5fc188875a149eb0b170 (diff)
downloadnix-b4d4b3183b75addf7cad83c57994a62a89235ed4.zip
Merge #1434
1434: Rewrite links to use https:// instead of http:// r=asomers a=rtzoeller All of the `http://` links in the repository are also available as `https://, and have been updated. The sole exception to this trivially rewrite is a dead-link to `http://rust-lang.org/COPYRIGHT`, which has been replaced with `https://www.rust-lang.org/policies/licenses`. Co-authored-by: Ryan Zoeller <rtzoeller@rtzoeller.com>
Diffstat (limited to 'src/sched.rs')
-rw-r--r--src/sched.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sched.rs b/src/sched.rs
index 3b48b4ad..576eb4aa 100644
--- a/src/sched.rs
+++ b/src/sched.rs
@@ -109,7 +109,7 @@ mod sched_linux_like {
}
/// `sched_setaffinity` set a thread's CPU affinity mask
- /// ([`sched_setaffinity(2)`](http://man7.org/linux/man-pages/man2/sched_setaffinity.2.html))
+ /// ([`sched_setaffinity(2)`](https://man7.org/linux/man-pages/man2/sched_setaffinity.2.html))
///
/// `pid` is the thread ID to update.
/// If pid is zero, then the calling thread is updated.
@@ -142,7 +142,7 @@ mod sched_linux_like {
}
/// `sched_getaffinity` get a thread's CPU affinity mask
- /// ([`sched_getaffinity(2)`](http://man7.org/linux/man-pages/man2/sched_getaffinity.2.html))
+ /// ([`sched_getaffinity(2)`](https://man7.org/linux/man-pages/man2/sched_getaffinity.2.html))
///
/// `pid` is the thread ID to check.
/// If pid is zero, then the calling thread is checked.
@@ -219,7 +219,7 @@ mod sched_linux_like {
/// Explicitly yield the processor to other threads.
///
-/// [Further reading](http://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_yield.html)
+/// [Further reading](https://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_yield.html)
pub fn sched_yield() -> Result<()> {
let res = unsafe { libc::sched_yield() };