Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-09-24 06:34:09

Ben Hutchings wrote:
> I think the answer is that it cannot change the order of an
> atomic_read and an atomic update, assuming that the latter uses an
> Interlocked* operations which includes a full memory barrier, but
> unfortunately it would be able to change the order of two
> atomic_reads.

It doesn't matter whether two reads are reordered or not, because they will
see the same value regardless of the order.

Boost list run by bdawes at, gregod at, cpdaniel at, john at