mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-09 00:17:44 +00:00
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:
commit
8e20470425
@ -62,7 +62,7 @@
|
||||
//! some atomic operations. Maximally portable code will want to be careful
|
||||
//! about which atomic types are used. `AtomicUsize` and `AtomicIsize` are
|
||||
//! 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.
|
||||
//!
|
||||
//! Currently you'll need to use `#[cfg(target_arch)]` primarily to
|
||||
|
Loading…
Reference in New Issue
Block a user