[][src]Trait lock_api::RawRwLockUpgradeFair

pub unsafe trait RawRwLockUpgradeFair: RawRwLockUpgrade + RawRwLockFair {
    fn unlock_upgradable_fair(&self);

    fn bump_upgradable(&self) { ... }
}

Additional methods for RwLocks which support upgradable locks and fair unlocking.

Required methods

fn unlock_upgradable_fair(&self)

Releases an upgradable lock using a fair unlock protocol.

Loading content...

Provided methods

fn bump_upgradable(&self)

Temporarily yields an upgradable lock to a waiting thread if there is one.

This method is functionally equivalent to calling unlock_upgradable_fair followed by lock_upgradable, however it can be much more efficient in the case where there are no waiting threads.

Loading content...

Implementors

Loading content...