Simplify Mutex::into_inner
by a1phyr · Pull Request #84650 · rust-lang/rust (original) (raw)
JohnTitor added a commit to JohnTitor/rust that referenced this pull request
Multiple improvements to RwLocks
This PR replicates rust-lang#77147, rust-lang#77380 and rust-lang#84650 on RWLocks :
- Split
sys_common::RWLock
inStaticRWLock
andMovableRWLock
- Unbox rwlocks on some platforms (Windows, Wasm and unsupported)
- Simplify
RwLock::into_inner
Notes to reviewers :
- For each target, I copied
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