Closed StevenCurran closed 9 months ago
Usually better if you have a high amount of CAS contention. Seems you are updating these values in busy loops, so may be a better approach.
Thanks, I'll try this out!
A LongAdder is primarily used for calculating sums. It would not be applicable in your case.
Closing b/c of above
Usually better if you have a high amount of CAS contention. Seems you are updating these values in busy loops, so may be a better approach.