-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spin loop pause function redux #41207
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @BurntSushi (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
@alexcrichton What do you think? I saw you raised some concerns here, but I think they've been addressed in this PR. |
Yes the docs seems reasonable, although I'm not a huge fan of the name |
@alexcrichton There is no precedent in C or C++ but there is in Java see http://openjdk.java.net/jeps/285 . |
Thanks for the pointer! Looks like Java called this Not sure if that means much for us... |
The |
@alexcrichton is on vacation, so he might not look on your PR until next week. |
☔ The latest upstream changes (presumably #41411) made this pull request unmergeable. Please resolve the merge conflicts. |
Ok this seems like a reasonable API to me to have in libstd, and we've probably had enough bikeshedding at this point! The name seems totally reasonable to me in terms of it's still unstable and we'll have a final pass before stabilizing regardless. @sstewartgallus if you'd like to rebase I'll r+! |
☔ The latest upstream changes (presumably #41437) made this pull request unmergeable. Please resolve the merge conflicts. |
Ah sorry looks like I miseed that rebase before bors caught it, wanna try again? |
@sstewartgallus looks like tidy is failing, and mind squashing this into one commit? |
@@ -0,0 +1,41 @@ | |||
# `hint_core_should_pause` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should be moved to library-features
directory.
src/doc/unstable-book/src/SUMMARY.md
Outdated
@@ -221,3 +222,4 @@ | |||
- [windows_handle](library-features/windows-handle.md) | |||
- [windows_net](library-features/windows-net.md) | |||
- [windows_stdio](library-features/windows-stdio.md) | |||
- [zero_one](library-features/zero-one.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There isn't zero_one
feature anymore, is this a typo?
src/doc/unstable-book/src/SUMMARY.md
Outdated
@@ -145,6 +145,7 @@ | |||
- [future_atomic_orderings](library-features/future-atomic-orderings.md) | |||
- [get_type_id](library-features/get-type-id.md) | |||
- [heap_api](library-features/heap-api.md) | |||
- [hint_core_should_pause](hint-core-should-pause.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the link to point to library-features/hint-core-should-pause.md
.
@bors: r+ |
📌 Commit f4fe3cd has been approved by |
Spin loop pause function redux GitHub's interface is screwy. This is the same PR as #40537
☀️ Test successful - status-appveyor, status-travis |
GitHub's interface is screwy.
This is the same PR as #40537