We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MutexGuard
1 parent 345e782 commit c223257Copy full SHA for c223257
src/concurrency/send-sync/examples.md
@@ -30,10 +30,12 @@ Typically because of interior mutability:
30
31
## `!Send + Sync`
32
33
-These types are thread-safe, but they cannot be moved to another thread:
+These types are safe to access (via shared references) from multiple threads,
34
+but they cannot be moved to another thread:
35
36
- `MutexGuard<T: Sync>`: Uses OS level primitives which must be deallocated on
- the thread which created them.
37
+ the thread which created them. However, an already-locked mutex can have its
38
+ guarded variable read by any thread with which the guard is shared.
39
40
## `!Send + !Sync`
41
0 commit comments