Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tracking Issue for rwlock_downgrade #128203

Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.
@connortsui20

Description

Feature gate: #![feature(rwlock_downgrade)]

This is a tracking issue for a downgrade method for RwLock as discussed in rust-lang/libs-team#392.

The downgrade method on RwLockWriteGuard will transform a write-locked RwLock into a read-locked one.

Public API

impl<'a, T: ?Sized> RwLockWriteGuard<'a, T> {
 pub fn downgrade(s: Self) -> RwLockReadGuard<'a, T> {}
}

Steps / History

Unresolved Questions

  • (削除) It is likely that the reader protocol for the futex implementation will need to change. See below. (削除ここまで)
  • (削除) How to go about implementing downgrade for the queue.rs implementation? (削除ここまで)
  • (削除) Does the solid_asp3 platform already have a downgrade method on their RwLock implementation? (削除ここまで)
  • (削除) Does lock poisoning play into this at all? (削除ここまで)

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /