From: Peter Dimov (pdimov_at_[hidden])
Date: 2020-12-04 17:44:48
Andrey Semashev wrote:
> > [*] Incidentally we want to increment with memory order relaxed instead
> > of acq_rel.
> This would probably be a good optimization in atomic_count.
atomic_count can't do this because it doesn't have enough knowledge about
the context in which it's used.
In principle you can use negative values for the count, again destroying on
I could have specified ++a to be relaxed, but it is what it is at this
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk