-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Multiple improvements to RwLocks #84687
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
rust/library/std/src/sys/unix/mutex.rs Lines 32 to 34 in 78c9639
|
☔ The latest upstream changes (presumably #85036) made this pull request unmergeable. Please resolve the merge conflicts. |
Rebased |
☔ The latest upstream changes (presumably #84697) made this pull request unmergeable. Please resolve the merge conflicts. |
- Split `sys_common::RWLock` between `StaticRWLock` and `MovableRWLock` - Unbox `RwLock` on some platforms (Windows, Wasm and unsupported) - Simplify `RwLock::into_inner`
Very nice! Thanks! (Sorry for the late review.) @bors r+ |
📌 Commit ac470e9 has been approved by |
⌛ Testing commit ac470e9 with merge 7ec1035eca280ff57be0c76930820203a694f316... |
💔 Test failed - checks-actions |
@bors retry |
Rollup of 7 pull requests Successful merges: - rust-lang#82037 (Make symbols stripping work on MacOS X) - rust-lang#84687 (Multiple improvements to RwLocks) - rust-lang#85997 (rustdoc: Print a warning if the diff when comparing to old nightlies is empty) - rust-lang#86051 (Updated code examples and wording in move keyword documentation ) - rust-lang#86111 (fix off by one in `std::iter::Iterator` documentation) - rust-lang#86113 (build doctests with lld if use-lld = true) - rust-lang#86175 (update Miri) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This PR replicates #77147, #77380 and #84650 on RWLocks :
sys_common::RWLock
inStaticRWLock
andMovableRWLock
RwLock::into_inner
Notes to reviewers :
MovableMutex
to guess ifMovableRWLock
should be boxed.A comment says thatStaticMutex
is not re-entrant, I don't understand why and I don't know whether it applies toStaticRWLock
.r? @m-ou-se