Skip to content

Commit c3f57ba

Browse files
[util.smartptr.atomic.shared] Exposition-only style for p
1 parent 9e8888c commit c3f57ba

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

source/threads.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6138,7 +6138,7 @@
61386138
constexpr void notify_all() noexcept;
61396139

61406140
private:
6141-
shared_ptr<T> p; // \expos
6141+
shared_ptr<T> @\exposid{p}@; // \expos
61426142
};
61436143
}
61446144
\end{codeblock}
@@ -6151,7 +6151,7 @@
61516151
\begin{itemdescr}
61526152
\pnum
61536153
\effects
6154-
Value-initializes \tcode{p}.
6154+
Value-initializes \exposid{p}.
61556155
\end{itemdescr}
61566156

61576157
\indexlibraryctor{atomic<shared_ptr<T>>}%
@@ -6192,7 +6192,7 @@
61926192
\pnum
61936193
\effects
61946194
Atomically replaces the value pointed to by \keyword{this} with
6195-
the value of \tcode{desired} as if by \tcode{p.swap(desired)}.
6195+
the value of \tcode{desired} as if by \tcode{\exposid{p}.swap(desired)}.
61966196
Memory is affected according to the value of \tcode{order}.
61976197
\end{itemdescr}
61986198

@@ -6237,7 +6237,7 @@
62376237

62386238
\pnum
62396239
\returns
6240-
Atomically returns \tcode{p}.
6240+
Atomically returns \exposid{p}.
62416241
\end{itemdescr}
62426242

62436243
\indexlibrarymember{operator shared_ptr<T>}{atomic<shared_ptr<T>>}%
@@ -6260,14 +6260,14 @@
62606260
\begin{itemdescr}
62616261
\pnum
62626262
\effects
6263-
Atomically replaces \tcode{p} with \tcode{desired}
6264-
as if by \tcode{p.swap(desired)}.
6263+
Atomically replaces \exposid{p} with \tcode{desired}
6264+
as if by \tcode{\exposid{p}.swap(desired)}.
62656265
Memory is affected according to the value of \tcode{order}.
62666266
This is an atomic read-modify-write operation\iref{intro.races}.
62676267

62686268
\pnum
62696269
\returns
6270-
Atomically returns the value of \tcode{p} immediately before the effects.
6270+
Atomically returns the value of \exposid{p} immediately before the effects.
62716271
\end{itemdescr}
62726272

62736273
\indexlibrarymember{compare_exchange_weak}{atomic<shared_ptr<T>>}%
@@ -6289,15 +6289,15 @@
62896289

62906290
\pnum
62916291
\effects
6292-
If \tcode{p} is equivalent to \tcode{expected},
6293-
assigns \tcode{desired} to \tcode{p} and
6292+
If \exposid{p} is equivalent to \tcode{expected},
6293+
assigns \tcode{desired} to \exposid{p} and
62946294
has synchronization semantics corresponding to the value of \tcode{success},
6295-
otherwise assigns \tcode{p} to \tcode{expected} and
6295+
otherwise assigns \exposid{p} to \tcode{expected} and
62966296
has synchronization semantics corresponding to the value of \tcode{failure}.
62976297

62986298
\pnum
62996299
\returns
6300-
\tcode{true} if \tcode{p} was equivalent to \tcode{expected},
6300+
\tcode{true} if \exposid{p} was equivalent to \tcode{expected},
63016301
\tcode{false} otherwise.
63026302

63036303
\pnum

0 commit comments

Comments
 (0)