[cpp-threads] Atomic operations and memory barriers
Peter Dimov
pdimov at mmltd.net
Fri Nov 4 19:38:37 GMT 2005
Nick Maclaren wrote:
> Thinking about it, I realise that there is one very fundamental
> point where there may be confusion.
>
> Let us start from the position that atomic operations do not imply
> a memory barrier. Not a problem. But some of the previous messages
> imply that they could move over one. If that is permitted, it is a
> catastrophic mistake. Yes, that bad :-(
Atomics can't move across a barrier unless ordinary operations can do so as
well.
More information about the cpp-threads
mailing list