From: Ivan Maidanski Date: Tue, 23 Oct 2012 03:23:39 +0000 (+0400) Subject: Add comment to AO_nop_write in ordered_except_wr.h X-Git-Tag: libatomic_ops-7_4_0~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebc41c8e536e97bdfd1fb0da334c4f7f2b829813;p=libatomic_ops Add comment to AO_nop_write in ordered_except_wr.h * src/atomic_ops/sysdeps/ordered_except_wr.h (AO_nop_write): Add comment (to outline that the implementation matches that of AO_nop_read). --- diff --git a/src/atomic_ops/sysdeps/ordered_except_wr.h b/src/atomic_ops/sysdeps/ordered_except_wr.h index da8b13a..1e7cb7b 100644 --- a/src/atomic_ops/sysdeps/ordered_except_wr.h +++ b/src/atomic_ops/sysdeps/ordered_except_wr.h @@ -32,6 +32,7 @@ AO_INLINE void AO_nop_write(void) { + /* AO_nop_write implementation is the same as of AO_nop_read. */ AO_compiler_barrier(); /* sfence according to Intel docs. Pentium 3 and up. */ /* Unnecessary for cached accesses? */