Rollup merge of #89925 - gilescope:update-docs-atomic-usage, r=m-ou-se

updating docs to mention usage of AtomicBool

Mouse mentioned we should point out that atomic bool is used by the std lib these days. ( https://github.com/m-ou-se/getrandom/pull/1 )
This commit is contained in:
Matthias Krüger 2021-10-16 08:02:28 +02:00 committed by GitHub
commit 8e20470425
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@
//! some atomic operations. Maximally portable code will want to be careful //! some atomic operations. Maximally portable code will want to be careful
//! about which atomic types are used. `AtomicUsize` and `AtomicIsize` are //! about which atomic types are used. `AtomicUsize` and `AtomicIsize` are
//! generally the most portable, but even then they're not available everywhere. //! generally the most portable, but even then they're not available everywhere.
//! For reference, the `std` library requires pointer-sized atomics, although //! For reference, the `std` library requires `AtomicBool`s and pointer-sized atomics, although
//! `core` does not. //! `core` does not.
//! //!
//! Currently you'll need to use `#[cfg(target_arch)]` primarily to //! Currently you'll need to use `#[cfg(target_arch)]` primarily to