Lines Matching refs:Relaxed
69 .compare_exchange_weak(0, LOCKED_BIT, Ordering::Acquire, Ordering::Relaxed) in lock()
79 let mut state = self.state.load(Ordering::Relaxed); in try_lock()
88 Ordering::Relaxed, in try_lock()
104 .compare_exchange(LOCKED_BIT, 0, Ordering::Release, Ordering::Relaxed) in unlock()
114 let state = self.state.load(Ordering::Relaxed); in is_locked()
125 .compare_exchange(LOCKED_BIT, 0, Ordering::Release, Ordering::Relaxed) in unlock_fair()
135 if self.state.load(Ordering::Relaxed) & PARKED_BIT != 0 { in bump()
149 .compare_exchange_weak(0, LOCKED_BIT, Ordering::Acquire, Ordering::Relaxed) in try_lock_until()
166 .compare_exchange_weak(0, LOCKED_BIT, Ordering::Acquire, Ordering::Relaxed) in try_lock_for()
185 let mut state = self.state.load(Ordering::Relaxed); in mark_parked_if_locked()
193 Ordering::Relaxed, in mark_parked_if_locked()
194 Ordering::Relaxed, in mark_parked_if_locked()
206 self.state.fetch_or(PARKED_BIT, Ordering::Relaxed); in mark_parked()
212 let mut state = self.state.load(Ordering::Relaxed); in lock_slow()
220 Ordering::Relaxed, in lock_slow()
230 state = self.state.load(Ordering::Relaxed); in lock_slow()
239 Ordering::Relaxed, in lock_slow()
240 Ordering::Relaxed, in lock_slow()
249 let validate = || self.state.load(Ordering::Relaxed) == LOCKED_BIT | PARKED_BIT; in lock_slow()
254 self.state.fetch_and(!PARKED_BIT, Ordering::Relaxed); in lock_slow()
287 state = self.state.load(Ordering::Relaxed); in lock_slow()
303 self.state.store(LOCKED_BIT, Ordering::Relaxed); in unlock_slow()