lock_api: `RwLockReadGuard::unlocked` incorrectly claims fairness
CAD97 opened this issue · comments
Christopher Durham commented
RwLockReadGuard::unlocked
:
parking_lot/lock_api/src/rwlock.rs
Lines 1248 to 1265 in de2a402
RwLockReadGuard::unlocked_fair
:
parking_lot/lock_api/src/rwlock.rs
Lines 1290 to 1307 in de2a402
Fix: just remove the line about being fair from RwLockReadGuard::unlocked
's documentation.
This mistake is not present on upgradable read guards, write guards, nor mutex guards.