Is this accurate? It seems to simply rely on the atomic_xchg intrinsics, and not implement any kind of re-trying to block on the atom like the docstring suggests.
|
/// Swap a new value into the Atom, This will try multiple |
|
/// times until it succeeds. The old value will be returned. |
|
pub fn swap(&self, v: P, order: Ordering) -> Option<P> { |