]> granicus.if.org Git - libatomic_ops/commitdiff
Fix AO_load primitive name in comment
authorIvan Maidanski <ivmai@mail.ru>
Tue, 2 Oct 2012 12:59:58 +0000 (16:59 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 8 Oct 2012 15:36:07 +0000 (17:36 +0200)
* src/atomic_ops.h: Fix 'load' primitive name in comment (replace
AO_load_release_read with AO_load_acquire_read).

src/atomic_ops.h

index db177d5d576ef7a751c56c86d599d4e3373f3f25..b96f93054d8846b5e87dc58f84f17b57741b1e46 100644 (file)
 /*      data.x = ...; data.y = ...; ...                         */
 /*      AO_store_release_write(&data_is_initialized, 1)         */
 /* then data is guaranteed to be initialized after the test     */
-/*      if (AO_load_release_read(&data_is_initialized)) ...     */
+/*      if (AO_load_acquire_read(&data_is_initialized)) ...     */
 /* succeeds.  Furthermore, this should generate near-optimal    */
 /* code on all common platforms.                                */
 /*                                                              */