Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/libs/
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()
118 assert!(inner.is_locked); in unlock()
120 inner.is_locked = false; in unlock()
Dspinlock.rs126 pub fn is_locked(&self) -> bool { in is_locked() method
Dlockref.rs58 if !old.lock.is_locked() { in cmpxchg_loop()
/DragonOS-0.1.8/docs/kernel/locking/
Dmutex.md38 is_locked: bool,
/DragonOS-0.1.8/docs/community/ChangeLog/V0.1.x/
DV0.1.3.md256 * Rust的RawSpinlock新增is_locked()和set_value()方法。