Exemple #1
0
 public static long Add(ref long location1, long value)
 {
     return(Interlocked.ExchangeAdd(ref location1, value) + value);
 }
Exemple #2
0
 public static int Add(ref int location1, int value)
 {
     return(Interlocked.ExchangeAdd(ref location1, value) + value);
 }