Home
last modified time | relevance | path

Searched refs:RwLockUpgradableGuard (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Drwlock.rs51 pub struct RwLockUpgradableGuard<'a, T: 'a> { struct
222 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> { implementation
382 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 …]
/DragonOS-0.1.8/docs/kernel/locking/
Drwlock.md44 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