Exemplo n.º 1
0
 public static int UpdateAndGet(ref this int value, Func <int, int> updater)
 => Atomic.Update(ref value, updater).NewValue;
Exemplo n.º 2
0
 public static float UpdateAndGet(ref this float value, Func <float, float> updater)
 => Atomic.Update(ref value, updater).NewValue;
Exemplo n.º 3
0
 public static double UpdateAndGet(ref this double value, Func <double, double> updater)
 => Atomic.Update(ref value, updater).NewValue;
Exemplo n.º 4
0
 public static long UpdateAndGet(ref this long value, Func <long, long> updater)
 => Atomic.Update(ref value, updater).NewValue;