Why is there no overload of Interlocked.Add that accepts Doubles as parameters?
Others have addressed the “why?”. It is easy however to roll your own Add(ref double, double), using the CompareExchange primitive: public static double Add(ref double location1, double value) { double newCurrentValue = location1; // non-volatile read, so may be stale while (true) { double currentValue = newCurrentValue; double newValue = currentValue + value; newCurrentValue = … Read more