Example about explicit mutex dropping Fixes #67457. Following the remarks made in #73074, I added an example on the main `Mutex` type, with a situation where there is mutable data and a computation result. In my testing it is effectively needed to explicitly drop the lock, else it deadlocks. r? @dtolnay because you were the one to review the previous PR. |
||
|---|---|---|
| .. | ||
| mpsc | ||
| barrier.rs | ||
| condvar.rs | ||
| mod.rs | ||
| mutex.rs | ||
| once.rs | ||
| rwlock.rs | ||