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 848
848
849
849
\pnum
850
850
\effects Retrieves the value in \tcode {expected}.
851
- It then atomically compares the value referenced by \tcode {*ptr} for equality
851
+ It then atomically compares the value representation of
852
+ the value referenced by \tcode {*ptr} for equality
852
853
with that previously retrieved from \tcode {expected},
853
854
and if \tcode {true}, replaces the value referenced by \tcode {*ptr}
854
855
with that in \tcode {desired}.
865
866
the value \tcode {memory_order_relaxed}.
866
867
If and only if the comparison is \tcode {false} then,
867
868
after the atomic operation,
868
- the contents of the memory in \tcode {expected} are replaced by
869
+ the value in \tcode {expected} is replaced by
869
870
the value read from the value referenced by \tcode {*ptr}
870
871
during the atomic comparison.
871
872
If the operation returns \tcode {true},
You can’t perform that action at this time.
0 commit comments