Home
last modified time | relevance | path

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

/DragonOS/kernel/src/libs/
H A Drwlock.rs55 pub struct RwLockUpgradableGuard<'a, T: 'a> { struct
287 pub fn try_upgradeable_read(&self) -> Option<RwLockUpgradableGuard<T>> { in try_upgradeable_read()
298 pub fn try_upgradeable_read_irqsave(&self) -> Option<RwLockUpgradableGuard<T>> { in try_upgradeable_read_irqsave()
311 fn inner_try_upgradeable_read(&self) -> Option<RwLockUpgradableGuard<T>> { in inner_try_upgradeable_read()
315 return Some(RwLockUpgradableGuard { in inner_try_upgradeable_read()
328 pub fn upgradeable_read(&self) -> RwLockUpgradableGuard<T> { in upgradeable_read()
339 pub fn upgradeable_read_irqsave(&self) -> RwLockUpgradableGuard<T> { in upgradeable_read_irqsave()
411 impl<'rwlock, T> RwLockUpgradableGuard<'rwlock, T> { impl
484 let this: ManuallyDrop<RwLockUpgradableGuard<'_, T>> = ManuallyDrop::new(this); in leak()
530 pub fn downgrade_to_upgradeable(mut self) -> RwLockUpgradableGuard<'rwlock, T> { in downgrade_to_upgradeable()
[all …]
/DragonOS/docs/kernel/locking/
H A 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
/DragonOS/kernel/src/driver/tty/
H A Dtty_core.rs16 rwlock::{RwLock, RwLockReadGuard, RwLockUpgradableGuard, RwLockWriteGuard},
418 pub fn window_size_upgradeable(&self) -> RwLockUpgradableGuard<WindowSize> { in window_size_upgradeable()