File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 867
867
868
868
\pnum
869
869
\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
871
872
with that previously retrieved from \tcode {expected},
872
873
and if \tcode {true}, replaces the value referenced by \tcode {*ptr}
873
874
with that in \tcode {desired}.
884
885
the value \tcode {memory_order_relaxed}.
885
886
If and only if the comparison is \tcode {false} then,
886
887
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
888
889
the value read from the value referenced by \tcode {*ptr}
889
890
during the atomic comparison.
890
891
If the operation returns \tcode {true},
You can’t perform that action at this time.
0 commit comments