Home
last modified time | relevance | path

Searched refs:try_upgrade (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/spin/src/
Drw_lock.rs497 pub fn try_upgrade(self) -> Result<RwLockWriteGuard<'rwlock, T>, Self> { in try_upgrade() method
807 unsafe fn try_upgrade(&self) -> bool { in try_upgrade() method
812 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()
/external/rust/crates/lock_api/src/
Drwlock.rs227 unsafe fn try_upgrade(&self) -> bool; in try_upgrade() method
1319 pub fn try_upgrade(s: Self) -> Result<RwLockWriteGuard<'a, R, T>, Self> { in try_upgrade() method
1321 if unsafe { s.rwlock.raw.try_upgrade() } { in try_upgrade()
/external/rust/crates/parking_lot/src/
Draw_rwlock.rs374 unsafe fn try_upgrade(&self) -> bool { in try_upgrade() method