[concurrency-interest] Fwd: Should I avoid compareAndSet with value-based classes?
david.lloyd at redhat.com
Fri Jul 7 09:41:53 EDT 2017
On Fri, Jul 7, 2017 at 4:20 AM, Andrew Haley <aph at redhat.com> wrote:
> In practice it doesn't matter, because you don't need to CAS a
> reference to an Instant: all you need to do is to wrap all of the
I think you must have meant, "In practice it doesn't matter _in this
particular case_". The problem of general data structures which use
CAS for updates matters very much in practice.
More information about the Concurrency-interest