File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 27
27
//! Rust atomics currently follow the same rules as [C++20 atomics][cpp], specifically `atomic_ref`.
28
28
//! Basically, creating a *shared reference* to one of the Rust atomic types corresponds to creating
29
29
//! an `atomic_ref` in C++; the `atomic_ref` is destroyed when the lifetime of the shared reference
30
- //! ends. (A Rust atomic type that is exclusively owned or behind a mutable reference does *not*
31
- //! correspond to an "atomic object" in C++, since it can be accessed via non-atomic operations.)
30
+ //! ends. A Rust atomic type that is exclusively owned or behind a mutable reference does *not*
31
+ //! correspond to an “atomic object” in C++, since the underlying primitive can be mutably accessed,
32
+ //! for example with `get_mut`, to perform non-atomic operations.
32
33
//!
33
34
//! [cpp]: https://en.cppreference.com/w/cpp/atomic
34
35
//!
You can’t perform that action at this time.
0 commit comments