My question is 99% answered in the post referenced below, but I'd like to know how the method is to be called. Since I cannot comment on the solution provided (too low reputation), I was advised to post my comment as a new question.
Original post and answer (by Eugene): Why is there no overload of Interlocked.Add that accepts Doubles as parameters?
Question: trying to program Parallel::For
loop which requires an Interlocked::Add on doubles, so the example is great. But how do I call this function?
Say B is to be added to A, both are doubles.
Would the call be A = Add(A, B); ? If not, what should it be?