about summary refs log tree commit diff
path: root/src/libstd/io/cursor.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-06-15 12:01:07 +0200
committerGitHub <noreply@github.com>2020-06-15 12:01:07 +0200
commit7c8b9413b8ce457b53e2c4ab5f3b9f1ce96195f7 (patch)
tree171d59b4523d9443224613956d0c148358ae358d /src/libstd/io/cursor.rs
parent344095715fb9e8004c91a1b5d857bd18c5d07a6f (diff)
parentc010e711ca5ec02012afb83c0d99aec9d26a9eea (diff)
downloadrust-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