2

Multiple improvements to RwLocks by a1phyr · Pull Request #84687 · rust-lang/rus...

 2 years ago
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.

Copy link

Contributor

a1phyr commented on Apr 29

edited

This PR replicates #77147, #77380 and #84650 on RWLocks :

  • Split sys_common::RWLock in StaticRWLock and MovableRWLock
  • Unbox rwlocks on some platforms (Windows, Wasm and unsupported)
  • Simplify RwLock::into_inner

Notes to reviewers :

  • For each target, I copied MovableMutex to guess if MovableRWLock 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 to StaticRWLock.

r? @m-ou-se


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK