Searched refs:RwLockUpgradableGuard (Results 1 – 2 of 2) sorted by relevance
51 pub struct RwLockUpgradableGuard<'a, T: 'a> { struct222 pub fn try_upgradeable_read(&self) -> Option<RwLockUpgradableGuard<T>> { in try_upgradeable_read()232 fn inner_try_upgradeable_read(&self) -> Option<RwLockUpgradableGuard<T>> { in inner_try_upgradeable_read()236 return Some(RwLockUpgradableGuard { in inner_try_upgradeable_read()248 pub fn upgradeable_read(&self) -> RwLockUpgradableGuard<T> { in upgradeable_read()311 impl<'rwlock, T> RwLockUpgradableGuard<'rwlock, T> { implementation382 let this: ManuallyDrop<RwLockUpgradableGuard<'_, T>> = ManuallyDrop::new(this); in leak()427 pub fn downgrade_to_upgradeable(self) -> RwLockUpgradableGuard<'rwlock, T> { in downgrade_to_upgradeable()439 return RwLockUpgradableGuard { in downgrade_to_upgradeable()454 impl<'rwlock, T> Deref for RwLockUpgradableGuard<'rwlock, T> { implementation[all …]
44 pub struct RwLockUpgradableGuard<'a, T: 'a> {102 pub fn upgradeable_read(&self) -> RwLockUpgradableGuard<T>106 pub fn try_upgradeable_read(&self) -> Option<RwLockUpgradableGuard<T>>115 pub fn downgrade_to_upgradeable(self) -> RwLockUpgradableGuard<'rwlock, T>117 ### 3.3 UPGRADER守卫RwLockUpgradableGuard的主要API