parking_lot has important details about guarantees provided by RwLockWriteGuard::downgrade(): https://docs.rs/parking_lot/0.12.4/parking_lot/type.RwLockWriteGuard.html#method.downgrade
It'd be very helpful to know what guarantees are provided by RwLockWriteGuard::downgrade() in async-lock.
For example, I need the following:
- downgrade is atomic and no writers can acquire lock in the meantime
- no currently waiting writers prevent any pending or future read locks from being acquired
parking_lot guarantees 1, but does not fully guarantee 2 (though it doesn't say it will never happen either).
parking_lothas important details about guarantees provided byRwLockWriteGuard::downgrade(): https://docs.rs/parking_lot/0.12.4/parking_lot/type.RwLockWriteGuard.html#method.downgradeIt'd be very helpful to know what guarantees are provided by
RwLockWriteGuard::downgrade()inasync-lock.For example, I need the following:
parking_lotguarantees 1, but does not fully guarantee 2 (though it doesn't say it will never happen either).