Skip to content

Commit 823db2d

Browse files
[util.smartptr.atomic.shared] Exposition-only style for p
1 parent e05d51a commit 823db2d

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
@@ -6167,7 +6167,7 @@
61676167
constexpr void notify_all() noexcept;
61686168

61696169
private:
6170-
shared_ptr<T> p; // \expos
6170+
shared_ptr<T> @\exposid{p}@; // \expos
61716171
};
61726172
}
61736173
\end{codeblock}
@@ -6180,7 +6180,7 @@
61806180
\begin{itemdescr}
61816181
\pnum
61826182
\effects
6183-
Value-initializes \tcode{p}.
6183+
Value-initializes \exposid{p}.
61846184
\end{itemdescr}
61856185

61866186
\indexlibraryctor{atomic<shared_ptr<T>>}%
@@ -6221,7 +6221,7 @@
62216221
\pnum
62226222
\effects
62236223
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)}.
62256225
Memory is affected according to the value of \tcode{order}.
62266226
\end{itemdescr}
62276227

@@ -6266,7 +6266,7 @@
62666266

62676267
\pnum
62686268
\returns
6269-
Atomically returns \tcode{p}.
6269+
Atomically returns \exposid{p}.
62706270
\end{itemdescr}
62716271

62726272
\indexlibrarymember{operator shared_ptr<T>}{atomic<shared_ptr<T>>}%
@@ -6289,14 +6289,14 @@
62896289
\begin{itemdescr}
62906290
\pnum
62916291
\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)}.
62946294
Memory is affected according to the value of \tcode{order}.
62956295
This is an atomic read-modify-write operation\iref{intro.races}.
62966296

62976297
\pnum
62986298
\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.
63006300
\end{itemdescr}
63016301

63026302
\indexlibrarymember{compare_exchange_weak}{atomic<shared_ptr<T>>}%
@@ -6318,15 +6318,15 @@
63186318

63196319
\pnum
63206320
\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
63236323
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
63256325
has synchronization semantics corresponding to the value of \tcode{failure}.
63266326

63276327
\pnum
63286328
\returns
6329-
\tcode{true} if \tcode{p} was equivalent to \tcode{expected},
6329+
\tcode{true} if \exposid{p} was equivalent to \tcode{expected},
63306330
\tcode{false} otherwise.
63316331

63326332
\pnum

0 commit comments

Comments
 (0)