Add a sched_getcpu wrapper#1825
Merged
bors[bot] merged 1 commit intonix-rust:masterfrom Sep 27, 2022
jonas-schievink:sched-getcpu
Merged
Add a sched_getcpu wrapper#1825bors[bot] merged 1 commit intonix-rust:masterfrom jonas-schievink:sched-getcpu
sched_getcpu wrapper#1825bors[bot] merged 1 commit intonix-rust:masterfrom
jonas-schievink:sched-getcpu
Conversation
rtzoeller
reviewed
Sep 23, 2022
| } | ||
|
|
||
| /// Determines the CPU on which the calling thread is running. | ||
| pub fn sched_getcpu() -> Result<usize> { |
Collaborator
Collaborator
|
Thanks! Can you modify the existing test here to validate that setting the affinity actually has an effect by calling |
Contributor
Author
|
Thanks for the review! I've addressed the comments. |
Collaborator
|
@jonas-schievink can you squash the current changes into a single commit? Otherwise this looks great. |
Contributor
Author
|
Okay, I've squashed the commits |
Contributor
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.