Skip to content

Commit 49803ad

Browse files
Dawn Perchikzygoloid
authored andcommitted
P1123R0 Editorial Guidance for merging P0019R8 and P0528R3
1 parent 0eef7e2 commit 49803ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/atomics.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,8 @@
867867

868868
\pnum
869869
\effects Retrieves the value in \tcode{expected}.
870-
It then atomically compares the value referenced by \tcode{*ptr} for equality
870+
It then atomically compares the value representation of
871+
the value referenced by \tcode{*ptr} for equality
871872
with that previously retrieved from \tcode{expected},
872873
and if \tcode{true}, replaces the value referenced by \tcode{*ptr}
873874
with that in \tcode{desired}.
@@ -884,7 +885,7 @@
884885
the value \tcode{memory_order_relaxed}.
885886
If and only if the comparison is \tcode{false} then,
886887
after the atomic operation,
887-
the contents of the memory in \tcode{expected} are replaced by
888+
the value in \tcode{expected} is replaced by
888889
the value read from the value referenced by \tcode{*ptr}
889890
during the atomic comparison.
890891
If the operation returns \tcode{true},

0 commit comments

Comments
 (0)