Skip to content

Provide an upgradable readers-writer lock #169

Open

Description

@PragmaTwice

Activity

  1. tisonkun commented on Aug 21, 2026

    @tisonkun
    Member

    This sounds reasonable. I'd prefer to see an overall Rust API design since the main challenge in Async Rust primitives is proper API semantic.

  2. mhambre commented on Aug 21, 2026

    @mhambre
    Contributor

    I know parking_lot supports this so there's definitely some desire out there to have a feature for it. Longer term we could look into it and follow similar semantics since their lock_api's RawRwLockUpgrade as an idea for extending existing core types is very clean (e.g. trait extension of RwLock or make it into a 'Raw' type so that we can further extend with things like different priority structures). This is something that could be applied to other synchronization methods as well. For a quicker turnaround we could build it as a separate type? Furthermore we can derive lessons from async-lock as it's also runtime agnostic and can build it from the existing asyncband primitives.

  3. tisonkun commented on Aug 22, 2026

    @tisonkun
    Member

    For a quicker turnaround we could build it as a separate type?

    This is possible. We may have a draft implementation and see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions