You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Atomics docs should reference the C++11 standard instead of a GCC wiki page. #22064
The GCC wiki's content is transient and totally out of our control. Somebody could update the wiki with wrong information and mislead Rust documentation readers.
The text of the C++11 standard is guaranteed to have a correct description of C++11 atomics, by definition.
The pertinent sections of the standard can probably be quoted directly in our docs under fair use.
The GCC wiki is incomplete. I read it and then ten other websites that tried to provide an informal explanation of C++11 atomic operations before I looked at the standard itself and found a whole paragraph dedicated to my question.
Activity
steveklabnik commentedon Feb 8, 2015
Why?
tomjakubowski commentedon Feb 8, 2015
Some reasons include:
petrochenkov commentedon Feb 8, 2015
Why 11 and not 14? With 14 our quotes will contain the latest editorial changes! :D
steveklabnik commentedon Feb 8, 2015
Are either of those standards the definitive documentation for what we are doing? I'm not opposed to this, just trying to gain some more context here.
tomjakubowski commentedon Feb 8, 2015
I believe so. Rust uses LLVM's atomic intrinsic functions which correspond directly to C++11's atomic operations. See the LLVM language reference and a more informal description.
mahkoh commentedon Feb 8, 2015
The GCC wiki is incomplete. I read it and then ten other websites that tried to provide an informal explanation of C++11 atomic operations before I looked at the standard itself and found a whole paragraph dedicated to my question.
Refer to LLVM rather than GCC wiki for atomic orderings
Rollup merge of rust-lang#22272 - steveklabnik:gh22064, r=alexcrichton
Rollup merge of rust-lang#22272 - steveklabnik:gh22064, r=alexcrichton
Rollup merge of rust-lang#22272 - steveklabnik:gh22064, r=alexcrichton