Searched refs:try_upgrade (Results 1 – 3 of 3) sorted by relevance
497 pub fn try_upgrade(self) -> Result<RwLockWriteGuard<'rwlock, T>, Self> { in try_upgrade() method807 unsafe fn try_upgrade(&self) -> bool { in try_upgrade() method812 tmp_guard.try_upgrade().map(|g| core::mem::forget(g)).is_ok() in try_upgrade()1056 assert!(upg.try_upgrade().is_err()); in test_upgrade_downgrade()1071 assert!(m.try_upgradeable_read().unwrap().try_upgrade().is_ok()); in test_upgrade_downgrade()
227 unsafe fn try_upgrade(&self) -> bool; in try_upgrade() method1319 pub fn try_upgrade(s: Self) -> Result<RwLockWriteGuard<'a, R, T>, Self> { in try_upgrade() method1321 if unsafe { s.rwlock.raw.try_upgrade() } { in try_upgrade()
374 unsafe fn try_upgrade(&self) -> bool { in try_upgrade() method