-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Tracking Issue for rwlock_downgrade #128203
Copy link
Copy link
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]
Description
Activity
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]
Feature gate:
#![feature(rwlock_downgrade)]This is a tracking issue for a
downgrademethod forRwLockas discussed in rust-lang/libs-team#392.The
downgrademethod onRwLockWriteGuardwill transform a write-lockedRwLockinto a read-locked one.Public API
Steps / History
RwLockdowngrademethod libs-team#392downgradeimplementation forfutex.rsdowngradeimplementation forno_threads.rsdowngradeimplementation forqueue.rsdowngradeimplementation forsolid.rsdowngradeimplementation forteeos.rsrwlock_downgradelibrary feature #143191Unresolved Questions
It is likely that the reader protocol for the futex implementation will need to change. See below.How to go about implementingdowngradefor thequeue.rsimplementation?Does thesolid_asp3platform already have adowngrademethod on theirRwLockimplementation?Does lock poisoning play into this at all?Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩