Files
rust/src/libstd/sync
Ralf Jung 7c8b9413b8 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.
2020-06-15 12:01:07 +02:00
..
2020-06-10 01:35:47 +00:00
2019-12-22 17:42:47 -05:00
2020-06-13 10:11:02 -07:00
2020-05-24 11:59:07 +03:00