Lines Matching refs:new
38 pub fn new() -> LockRef { in new() method
59 let mut new = LockRef::INIT; in cmpxchg_loop() localVariable
61 *(&mut new as *mut LockRef as *mut usize as *mut u64) = in cmpxchg_loop()
63 new.lock.set_value(false); in cmpxchg_loop()
69 new.count += 1; in cmpxchg_loop()
76 new.count += 1; in cmpxchg_loop()
83 new.count += 1; in cmpxchg_loop()
90 new.count -= 1; in cmpxchg_loop()
96 new.count -= 1; in cmpxchg_loop()
104 &mut new as *mut LockRef as *mut usize as *mut u64, in cmpxchg_loop()
108 return Ok(new.count); in cmpxchg_loop()