Trait lock_api::RawRwLockUpgradeDowngrade [−][src]
pub unsafe trait RawRwLockUpgradeDowngrade: RawRwLockUpgrade + RawRwLockDowngrade { fn downgrade_upgradable(&self); fn downgrade_to_upgradable(&self); }
Additional methods for RwLocks which support upgradable locks and lock downgrading.
Required Methods
fn downgrade_upgradable(&self)
Downgrades an upgradable lock to a shared lock.
fn downgrade_to_upgradable(&self)
Downgrades an exclusive lock to an upgradable lock.