Home
last modified time | relevance | path

Searched refs:is_locked (Results 1 – 5 of 5) sorted by relevance

/DragonOS/kernel/src/libs/
H A Dmutex.rs22 is_locked: bool, field
52 is_locked: false, in new()
66 if inner.is_locked { in lock()
77 inner.is_locked = true; in lock()
96 if inner.is_locked { in try_lock()
100 inner.is_locked = true; in try_lock()
119 assert!(inner.is_locked); in unlock()
121 inner.is_locked = false; in unlock()
H A Dspinlock.rs171 pub fn is_locked(&self) -> bool { in is_locked() method
/DragonOS/docs/kernel/locking/
H A Dmutex.md38 is_locked: bool,
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.3.md256 * Rust的RawSpinlock新增is_locked()和set_value()方法。
/DragonOS/kernel/src/sched/
H A Dmod.rs363 if self.lock.is_locked() in self_lock()