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
..
mpsc Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
barrier.rs Use matches macro in libcore and libstd 2020-01-08 07:10:28 +03:00
condvar.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
mod.rs Format the world 2019-12-22 17:42:47 -05:00
mutex.rs Rewrap comments in Mutex example 2020-06-13 10:11:02 -07:00
once.rs Fix typo in doc comment. 2020-05-24 11:59:07 +03:00
rwlock.rs Don't redundantly repeat field names (clippy::redundant_field_names) 2020-03-06 19:42:18 +01:00