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
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ r[concurrency]
2
2
# Concurrency
3
3
4
4
r[concurrency.intro]
5
-
Rust provides language and library features for writing concurrent programs. These features are designed to prevent [data races]— situations in which multiple threads access the same memory without proper synchronization, with at least one of the accesses modifying that memory.
5
+
Rust provides language and library features for writing concurrent programs. These features are designed to prevent [data races]--- situations in which multiple threads access the same memory without proper synchronization, with at least one of the accesses modifying that memory.
6
6
7
7
This chapter describes the traits, types, and concepts that Rust uses to express and enforce safe concurrency.
Types that manage non-thread-safe resources (such as raw pointers or unsynchronized interior mutability) may explicitly opt out of [`Send`] by providing a negative implementation (`!Send`).
Types with interior mutability that is not synchronized for concurrent access may explicitly opt out of [`Sync`] by providing a negative implementation (`!Sync`).
0 commit comments