Closed as not planned
Description
I think it would be great (certainly useful for me) if RwLock
were to support read-write upgrades and write-read downgrades. Currently I don't see a way to accomplish the same and I always have to get write access over the entire operation.
parking_lot
currently supports both cases (here & here). I also understand that there exists a proposal to use parking_lot
as the lock implementation backend.
Once (if) that lands, it should merely be a matter of extending the std
APIs to provide such support.