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.
1 parent f5b8238 commit bcbebd2Copy full SHA for bcbebd2
src/concurrency/shared-state/mutex.md
@@ -39,8 +39,8 @@ implementation.
39
protected data.
40
- You can get an `&mut T` from an `&Mutex<T>` by taking the lock. The
41
`MutexGuard` ensures that the `&mut T` doesn't outlive the lock being held.
42
-- `Mutex<T>` implements both `Send` and `Sync` iff (if and only if) `T`
43
- implements `Send`.
+- `Mutex<T>` implements both `Send` and `Sync` if and only if `T` implements
+ `Send`.
44
- A read-write lock counterpart: `RwLock`.
45
- Why does `lock()` return a `Result`?
46
- If the thread that held the `Mutex` panicked, the `Mutex` becomes "poisoned"
0 commit comments