2
Multiple improvements to RwLocks by a1phyr · Pull Request #84687 · rust-lang/rus...
source link: https://github.com/rust-lang/rust/pull/84687
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
This PR replicates #77147, #77380 and #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 that
StaticMutex
is not re-entrant, I don't understand why and I don't know whether it applies toStaticRWLock
.
r? @m-ou-se
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK