Skip to content

Commit 488ef20

Browse files
jfbastienzygoloid
authored andcommitted
Clarify a note on cmpxchg
The "thus" part absolutely does not follow from the preceding note text, and isn't even correct on its own. Since this is a note I assume this is an editorial change and doesn't need an issue.
1 parent df54048 commit 488ef20

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/atomics.tex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,9 +903,7 @@
903903
\begin{note} The \tcode{memcpy} and \tcode{memcmp} semantics of the compare-and-exchange
904904
operations may result in failed comparisons for values that compare equal with
905905
\tcode{operator==} if the underlying type has padding bits, trap bits, or alternate
906-
representations of the same value. Thus, \tcode{compare_exchange_strong} should be used
907-
with extreme care. On the other hand, \tcode{compare_exchange_weak} should converge
908-
rapidly. \end{note}
906+
representations of the same value.\end{note}
909907
\end{itemdescr}
910908

911909
\rSec2[atomics.types.int]{Specializations for integers}

0 commit comments

Comments
 (0)