|
1735 | 1735 |
|
1736 | 1736 | \pnum
|
1737 | 1737 | \effects
|
1738 |
| -Atomically replaces the value pointed to by \tcode{this} |
| 1738 | +Atomically replaces the value pointed to by \keyword{this} |
1739 | 1739 | with the value of \tcode{desired}. Memory is affected according to the value of
|
1740 | 1740 | \tcode{order}.
|
1741 | 1741 | \end{itemdescr}
|
|
1791 | 1791 |
|
1792 | 1792 | \pnum
|
1793 | 1793 | \returns
|
1794 |
| -Atomically returns the value pointed to by \tcode{this}. |
| 1794 | +Atomically returns the value pointed to by \keyword{this}. |
1795 | 1795 | \end{itemdescr}
|
1796 | 1796 |
|
1797 | 1797 | \indexlibrarymember{operator \placeholder{type}}{atomic}%
|
|
1834 | 1834 |
|
1835 | 1835 | \pnum
|
1836 | 1836 | \effects
|
1837 |
| -Atomically replaces the value pointed to by \tcode{this} |
| 1837 | +Atomically replaces the value pointed to by \keyword{this} |
1838 | 1838 | with \tcode{desired}.
|
1839 | 1839 | Memory is affected according to the value of \tcode{order}.
|
1840 | 1840 | These operations are atomic read-modify-write operations\iref{intro.multithread}.
|
1841 | 1841 |
|
1842 | 1842 | \pnum
|
1843 | 1843 | \returns
|
1844 |
| -Atomically returns the value pointed to by \tcode{this} immediately before the effects. |
| 1844 | +Atomically returns the value pointed to by \keyword{this} immediately before the effects. |
1845 | 1845 | \end{itemdescr}
|
1846 | 1846 |
|
1847 | 1847 | \indexlibraryglobal{atomic_compare_exchange_weak}%
|
|
1889 | 1889 | \pnum
|
1890 | 1890 | \effects
|
1891 | 1891 | Retrieves the value in \tcode{expected}. It then atomically
|
1892 |
| -compares the value representation of the value pointed to by \tcode{this} |
| 1892 | +compares the value representation of the value pointed to by \keyword{this} |
1893 | 1893 | for equality with that previously retrieved from \tcode{expected},
|
1894 | 1894 | and if true, replaces the value pointed to
|
1895 |
| -by \tcode{this} with that in \tcode{desired}. |
| 1895 | +by \keyword{this} with that in \tcode{desired}. |
1896 | 1896 | If and only if the comparison is \tcode{true}, memory is affected according to the
|
1897 | 1897 | value of \tcode{success}, and if the comparison is false, memory is affected according
|
1898 | 1898 | to the value of \tcode{failure}. When only one \tcode{memory_order} argument is
|
|
1903 | 1903 | \tcode{memory_order::relaxed}.
|
1904 | 1904 | If and only if the comparison is false then, after the atomic operation,
|
1905 | 1905 | the value in \tcode{expected} is replaced by the value
|
1906 |
| -pointed to by \tcode{this} during the atomic comparison. |
| 1906 | +pointed to by \keyword{this} during the atomic comparison. |
1907 | 1907 | If the operation returns \tcode{true}, these
|
1908 | 1908 | operations are atomic read-modify-write
|
1909 | 1909 | operations\iref{intro.multithread} on the memory
|
1910 |
| -pointed to by \tcode{this}. |
| 1910 | +pointed to by \keyword{this}. |
1911 | 1911 | Otherwise, these operations are atomic load operations on that memory.
|
1912 | 1912 |
|
1913 | 1913 | \pnum
|
|
1958 | 1958 | \pnum
|
1959 | 1959 | \remarks
|
1960 | 1960 | A weak compare-and-exchange operation may fail spuriously. That is, even when
|
1961 |
| -the contents of memory referred to by \tcode{expected} and \tcode{this} are |
| 1961 | +the contents of memory referred to by \tcode{expected} and \keyword{this} are |
1962 | 1962 | equal, it may return \tcode{false} and store back to \tcode{expected} the same memory
|
1963 | 1963 | contents that were originally there.
|
1964 | 1964 | \begin{note}
|
|
2277 | 2277 | \pnum
|
2278 | 2278 | \effects
|
2279 | 2279 | Atomically replaces the value pointed to by
|
2280 |
| -\tcode{this} with the result of the computation applied to the |
2281 |
| -value pointed to by \tcode{this} and the given \tcode{operand}. |
| 2280 | +\keyword{this} with the result of the computation applied to the |
| 2281 | +value pointed to by \keyword{this} and the given \tcode{operand}. |
2282 | 2282 | Memory is affected according to the value of \tcode{order}.
|
2283 | 2283 | These operations are atomic read-modify-write operations\iref{intro.multithread}.
|
2284 | 2284 |
|
2285 | 2285 | \pnum
|
2286 | 2286 | \returns
|
2287 |
| -Atomically, the value pointed to by \tcode{this} immediately before the effects. |
| 2287 | +Atomically, the value pointed to by \keyword{this} immediately before the effects. |
2288 | 2288 |
|
2289 | 2289 | \pnum
|
2290 | 2290 | \indextext{signed integer representation!two's complement}%
|
|
2439 | 2439 |
|
2440 | 2440 | \pnum
|
2441 | 2441 | \effects
|
2442 |
| -Atomically replaces the value pointed to by \tcode{this} |
| 2442 | +Atomically replaces the value pointed to by \keyword{this} |
2443 | 2443 | with the result of the computation applied to the value pointed
|
2444 |
| -to by \tcode{this} and the given \tcode{operand}. |
| 2444 | +to by \keyword{this} and the given \tcode{operand}. |
2445 | 2445 | Memory is affected according to the value of \tcode{order}.
|
2446 | 2446 | These operations are atomic read-modify-write operations\iref{intro.multithread}.
|
2447 | 2447 |
|
2448 | 2448 | \pnum
|
2449 | 2449 | \returns
|
2450 |
| -Atomically, the value pointed to by \tcode{this} immediately before the effects. |
| 2450 | +Atomically, the value pointed to by \keyword{this} immediately before the effects. |
2451 | 2451 |
|
2452 | 2452 | \pnum
|
2453 | 2453 | \remarks
|
|
2620 | 2620 | \pnum
|
2621 | 2621 | \effects
|
2622 | 2622 | Atomically replaces the value pointed to by
|
2623 |
| -\tcode{this} with the result of the computation applied to the |
2624 |
| -value pointed to by \tcode{this} and the given \tcode{operand}. |
| 2623 | +\keyword{this} with the result of the computation applied to the |
| 2624 | +value pointed to by \keyword{this} and the given \tcode{operand}. |
2625 | 2625 | Memory is affected according to the value of \tcode{order}.
|
2626 | 2626 | These operations are atomic read-modify-write operations\iref{intro.multithread}.
|
2627 | 2627 |
|
2628 | 2628 | \pnum
|
2629 | 2629 | \returns
|
2630 |
| -Atomically, the value pointed to by \tcode{this} immediately before the effects. |
| 2630 | +Atomically, the value pointed to by \keyword{this} immediately before the effects. |
2631 | 2631 |
|
2632 | 2632 | \pnum
|
2633 | 2633 | \remarks
|
|
2876 | 2876 |
|
2877 | 2877 | \pnum
|
2878 | 2878 | \effects
|
2879 |
| -Atomically replaces the value pointed to by \tcode{this} with |
| 2879 | +Atomically replaces the value pointed to by \keyword{this} with |
2880 | 2880 | the value of \tcode{desired} as if by \tcode{p.swap(desired)}.
|
2881 | 2881 | Memory is affected according to the value of \tcode{order}.
|
2882 | 2882 | \end{itemdescr}
|
|
2980 | 2980 | If the operation returns \tcode{true},
|
2981 | 2981 | \tcode{expected} is not accessed after the atomic update and
|
2982 | 2982 | the operation is an atomic read-modify-write operation\iref{intro.multithread}
|
2983 |
| -on the memory pointed to by \tcode{this}. |
| 2983 | +on the memory pointed to by \keyword{this}. |
2984 | 2984 | Otherwise, the operation is an atomic load operation on that memory, and
|
2985 | 2985 | \tcode{expected} is updated with the existing value
|
2986 | 2986 | read from the atomic object in the attempted atomic update.
|
|
3183 | 3183 |
|
3184 | 3184 | \pnum
|
3185 | 3185 | \effects
|
3186 |
| -Atomically replaces the value pointed to by \tcode{this} with |
| 3186 | +Atomically replaces the value pointed to by \keyword{this} with |
3187 | 3187 | the value of \tcode{desired} as if by \tcode{p.swap(desired)}.
|
3188 | 3188 | Memory is affected according to the value of \tcode{order}.
|
3189 | 3189 | \end{itemdescr}
|
|
3286 | 3286 | If the operation returns \tcode{true},
|
3287 | 3287 | \tcode{expected} is not accessed after the atomic update and
|
3288 | 3288 | the operation is an atomic read-modify-write operation\iref{intro.multithread}
|
3289 |
| -on the memory pointed to by \tcode{this}. |
| 3289 | +on the memory pointed to by \keyword{this}. |
3290 | 3290 | Otherwise, the operation is an atomic load operation on that memory, and
|
3291 | 3291 | \tcode{expected} is updated with the existing value
|
3292 | 3292 | read from the atomic object in the attempted atomic update.
|
|
3498 | 3498 |
|
3499 | 3499 | \pnum
|
3500 | 3500 | \returns
|
3501 |
| -Atomically returns the value pointed to by \tcode{object} or \tcode{this}. |
| 3501 | +Atomically returns the value pointed to by \tcode{object} or \keyword{this}. |
3502 | 3502 | \end{itemdescr}
|
3503 | 3503 |
|
3504 | 3504 | \indexlibraryglobal{atomic_flag_test_and_set}%
|
|
3516 | 3516 | \begin{itemdescr}
|
3517 | 3517 | \pnum
|
3518 | 3518 | \effects
|
3519 |
| -Atomically sets the value pointed to by \tcode{object} or by \tcode{this} to \tcode{true}. Memory is affected according to the value of |
| 3519 | +Atomically sets the value pointed to by \tcode{object} or by \keyword{this} to \tcode{true}. Memory is affected according to the value of |
3520 | 3520 | \tcode{order}. These operations are atomic read-modify-write operations\iref{intro.multithread}.
|
3521 | 3521 |
|
3522 | 3522 | \pnum
|
|
3544 | 3544 |
|
3545 | 3545 | \pnum
|
3546 | 3546 | \effects
|
3547 |
| -Atomically sets the value pointed to by \tcode{object} or by \tcode{this} to |
| 3547 | +Atomically sets the value pointed to by \tcode{object} or by \keyword{this} to |
3548 | 3548 | \tcode{false}. Memory is affected according to the value of \tcode{order}.
|
3549 | 3549 | \end{itemdescr}
|
3550 | 3550 |
|
|
3569 | 3569 | For \tcode{atomic_flag_wait},
|
3570 | 3570 | let \tcode{order} be \tcode{memory_order::seq_cst}.
|
3571 | 3571 | Let \tcode{flag} be \tcode{object} for the non-member functions and
|
3572 |
| -\tcode{this} for the member functions. |
| 3572 | +\keyword{this} for the member functions. |
3573 | 3573 |
|
3574 | 3574 | \pnum
|
3575 | 3575 | \expects
|
|
0 commit comments