atomic.h: comment on use of atomic_read/set
commite653bc6b0ff645c25b8a2eb607c18a5c98b59db6
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 30 Sep 2016 21:30:53 +0000 (30 22:30 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Oct 2016 08:00:25 +0000 (4 10:00 +0200)
tree2a558ef7e18bf2a423d2a52ebc7bfb9135e95f01
parent23ea7f57949f2f5934f4d5bbc29fe321b3a7067b
atomic.h: comment on use of atomic_read/set

Add some notes on the use of the relaxed atomic access helpers and their
importance for defined behaviour in C11's multi-threaded memory model.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20160930213106.20186-3-alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/atomic.h