Searched refs:is_locked (Results 1 – 5 of 5) sorted by relevance
22 is_locked: bool, field52 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()
126 pub fn is_locked(&self) -> bool { in is_locked() method
58 if !old.lock.is_locked() { in cmpxchg_loop()
38 is_locked: bool,
256 * Rust的RawSpinlock新增is_locked()和set_value()方法。