-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
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-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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 ↩