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
Copy file name to clipboardExpand all lines: src/concurrency.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,33 @@ The following table lists the atomic types and the corresponding primitive types
145
145
|`usize`|[`core::sync::atomic::AtomicUsize`]|
146
146
|`*mut T`|[`core::sync::atomic::AtomicPtr<T>`]|
147
147
148
+
r[concurrency.atomics.usage]
149
+
Atomic types are [`Sync`], meaning references to them can be safely shared between threads. Using atomic operations correctly may require careful reasoning about memory ordering.
0 commit comments