[][src]Function sync15::util::atomic_update_max

pub(crate) fn atomic_update_max(v: &AtomicU32, new: u32)

Finds the maximum of the current value and the argument val, and sets the new value to the result.

Note: AtomicFoo::fetch_max is unstable, and can't really be implemented as a single atomic operation from outside the stdlib ;-;