Lines Matching defs:from_ptr
39 /// [`LKMM`][LKMM] atomic primitives. With the help of [`Atomic::from_ptr()`] and
179 /// Using [`Atomic::from_ptr()`] combined with [`Atomic::load()`] or [`Atomic::store()`] can
208 /// let a = unsafe { Atomic::from_ptr(foo_a_ptr) }.load(Relaxed);
215 /// unsafe { Atomic::from_ptr(foo_a_ptr) }.store(2, Release);
217 pub unsafe fn from_ptr<'a>(ptr: *mut T) -> &'a Self {
750 /// This function provides a short-cut of `Atomic::from_ptr().load(..)`, and can be used to work
772 unsafe { Atomic::from_ptr(ptr) }.load(o)
777 /// This function provides a short-cut of `Atomic::from_ptr().load(..)`, and can be used to work
799 unsafe { Atomic::from_ptr(ptr) }.store(v, o);
804 /// This function provides a short-cut of `Atomic::from_ptr().xchg(..)`, and can be used to work
823 unsafe { Atomic::from_ptr(ptr) }.xchg(new, o)
828 /// This function provides a short-cut of `Atomic::from_ptr().cmpxchg(..)`, and can be used to work
849 unsafe { Atomic::from_ptr(ptr) }.cmpxchg(old, new, o)