Implement compare_exchange and compare_exchange_weak#30969
Merged
bors merged 3 commits intorust-lang:masterfrom Feb 22, 2016
Merged
Implement compare_exchange and compare_exchange_weak#30969bors merged 3 commits intorust-lang:masterfrom
bors merged 3 commits intorust-lang:masterfrom
Conversation
Contributor
|
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
841b5ac to
93b5e82
Compare
Contributor
|
Just noting that this is not an accepted RFC, so not reviewing yet. |
93b5e82 to
c59950f
Compare
Member
Author
|
I've updated the implementation to match the accepted RFC. |
src/libcore/sync/atomic.rs
Outdated
Member
There was a problem hiding this comment.
Could you wrap these comments to 80 chars? (the surrounding style)
Member
Author
There was a problem hiding this comment.
Actually the surrounding style seems to wrap comments at 100 chars, which is what I've been using.
Member
|
Thanks @Amanieu! |
c59950f to
b4b2a25
Compare
Member
Author
|
Updated with comments addressed |
Member
|
Thanks! Just to ensure that we've got all code paths covered, could you make sure that there's at least some call to each cmpxchg instrinsic in the tests? Just to make sure that trans doesn't choke on accident from any of these. |
Member
Author
|
Done |
Member
Collaborator
bors
added a commit
that referenced
this pull request
Feb 22, 2016
This is an implementation of rust-lang/rfcs#1443.
Collaborator
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.
This is an implementation of rust-lang/rfcs#1443.