|
6167 | 6167 | constexpr void notify_all() noexcept; |
6168 | 6168 |
|
6169 | 6169 | private: |
6170 | | - shared_ptr<T> p; // \expos |
| 6170 | + shared_ptr<T> @\exposid{p}@; // \expos |
6171 | 6171 | }; |
6172 | 6172 | } |
6173 | 6173 | \end{codeblock} |
|
6180 | 6180 | \begin{itemdescr} |
6181 | 6181 | \pnum |
6182 | 6182 | \effects |
6183 | | -Value-initializes \tcode{p}. |
| 6183 | +Value-initializes \exposid{p}. |
6184 | 6184 | \end{itemdescr} |
6185 | 6185 |
|
6186 | 6186 | \indexlibraryctor{atomic<shared_ptr<T>>}% |
|
6221 | 6221 | \pnum |
6222 | 6222 | \effects |
6223 | 6223 | Atomically replaces the value pointed to by \keyword{this} with |
6224 | | -the value of \tcode{desired} as if by \tcode{p.swap(desired)}. |
| 6224 | +the value of \tcode{desired} as if by \tcode{\exposid{p}.swap(desired)}. |
6225 | 6225 | Memory is affected according to the value of \tcode{order}. |
6226 | 6226 | \end{itemdescr} |
6227 | 6227 |
|
|
6266 | 6266 |
|
6267 | 6267 | \pnum |
6268 | 6268 | \returns |
6269 | | -Atomically returns \tcode{p}. |
| 6269 | +Atomically returns \exposid{p}. |
6270 | 6270 | \end{itemdescr} |
6271 | 6271 |
|
6272 | 6272 | \indexlibrarymember{operator shared_ptr<T>}{atomic<shared_ptr<T>>}% |
|
6289 | 6289 | \begin{itemdescr} |
6290 | 6290 | \pnum |
6291 | 6291 | \effects |
6292 | | -Atomically replaces \tcode{p} with \tcode{desired} |
6293 | | -as if by \tcode{p.swap(desired)}. |
| 6292 | +Atomically replaces \exposid{p} with \tcode{desired} |
| 6293 | +as if by \tcode{\exposid{p}.swap(desired)}. |
6294 | 6294 | Memory is affected according to the value of \tcode{order}. |
6295 | 6295 | This is an atomic read-modify-write operation\iref{intro.races}. |
6296 | 6296 |
|
6297 | 6297 | \pnum |
6298 | 6298 | \returns |
6299 | | -Atomically returns the value of \tcode{p} immediately before the effects. |
| 6299 | +Atomically returns the value of \exposid{p} immediately before the effects. |
6300 | 6300 | \end{itemdescr} |
6301 | 6301 |
|
6302 | 6302 | \indexlibrarymember{compare_exchange_weak}{atomic<shared_ptr<T>>}% |
|
6318 | 6318 |
|
6319 | 6319 | \pnum |
6320 | 6320 | \effects |
6321 | | -If \tcode{p} is equivalent to \tcode{expected}, |
6322 | | -assigns \tcode{desired} to \tcode{p} and |
| 6321 | +If \exposid{p} is equivalent to \tcode{expected}, |
| 6322 | +assigns \tcode{desired} to \exposid{p} and |
6323 | 6323 | has synchronization semantics corresponding to the value of \tcode{success}, |
6324 | | -otherwise assigns \tcode{p} to \tcode{expected} and |
| 6324 | +otherwise assigns \exposid{p} to \tcode{expected} and |
6325 | 6325 | has synchronization semantics corresponding to the value of \tcode{failure}. |
6326 | 6326 |
|
6327 | 6327 | \pnum |
6328 | 6328 | \returns |
6329 | | -\tcode{true} if \tcode{p} was equivalent to \tcode{expected}, |
| 6329 | +\tcode{true} if \exposid{p} was equivalent to \tcode{expected}, |
6330 | 6330 | \tcode{false} otherwise. |
6331 | 6331 |
|
6332 | 6332 | \pnum |
|
0 commit comments