Uh oh!
There was an error while loading. Please reload this page.
Example about explicit mutex dropping - #73104
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: LeSeulArtichaut <leseulartichaut@gmail.com>
nagisa
left a comment
There was a problem hiding this comment.
NB: Review comments I made are entirely a suggestion, they in no way mean I reject (were comments not resolved) or approve (once/if the comments are resolved) the PR.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
poliorcetics
commented
Jun 9, 2020
@nagisa I removed a lot of comments. Aside from the ones about the dummy work, there is only the big comment about deadlocking in main, which explains pretty much everything (I hope). Do not hesitate to tell me if you see something else I can improve ! |
poliorcetics
commented
Jun 11, 2020
@rustbot modify labels: C-enhancement, T-doc, T-libs |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: David Tolnay <dtolnay@gmail.com>
Based on the review made by dtolnay.
dtolnay
commented
Jun 13, 2020
@bors r+ |
bors
commented
Jun 13, 2020
📌 Commit c010e71 has been approved by |
poliorcetics
commented
Jun 13, 2020
I'm sorry you had to do a formatting commit, running |
…ample, r=dtolnay Example about explicit mutex dropping Fixesrust-lang#67457. Following the remarks made in rust-lang#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.
RalfJung
commented
Jun 15, 2020
@bors rollup |
…ample, r=dtolnay Example about explicit mutex dropping Fixesrust-lang#67457. Following the remarks made in rust-lang#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.
Rollup of 10 pull requests Successful merges: - rust-lang#72707 (Use min_specialization in the remaining rustc crates) - rust-lang#72740 (On recursive ADT, provide indirection structured suggestion) - rust-lang#72879 (Miri: avoid tracking current location three times) - rust-lang#72938 (Stabilize Option::zip) - rust-lang#73086 (Rename "cyclone" to "apple-a7" per changes in upstream LLVM) - rust-lang#73104 (Example about explicit mutex dropping) - rust-lang#73139 (Add methods to go from a nul-terminated Vec<u8> to a CString) - rust-lang#73296 (Remove vestigial CI job msvc-aux.) - rust-lang#73304 (Revert heterogeneous SocketAddr PartialEq impls) - rust-lang#73331 (extend network support for HermitCore) Failed merges: r? @ghost
Fixes#67457.
Following the remarks made in #73074, I added an example on the main
Mutextype, 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.