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