diff options
| author | Ralf Jung <post@ralfj.de> | 2020-06-15 12:01:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-15 12:01:07 +0200 |
| commit | 7c8b9413b8ce457b53e2c4ab5f3b9f1ce96195f7 (patch) | |
| tree | 171d59b4523d9443224613956d0c148358ae358d /src/libstd/io/cursor.rs | |
| parent | 344095715fb9e8004c91a1b5d857bd18c5d07a6f (diff) | |
| parent | c010e711ca5ec02012afb83c0d99aec9d26a9eea (diff) | |
| download | rust-7c8b9413b8ce457b53e2c4ab5f3b9f1ce96195f7.tar.gz rust-7c8b9413b8ce457b53e2c4ab5f3b9f1ce96195f7.zip | |
Rollup merge of #73104 - poliorcetics:explicit-mutex-drop-example, r=dtolnay
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.
Diffstat (limited to 'src/libstd/io/cursor.rs')
0 files changed, 0 insertions, 0 deletions
