Skip to content

Commit c891d6f

Browse files
[util.smartptr.atomic.shared] Exposition-only style for p
1 parent fe6caa6 commit c891d6f

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

61686168
private:
6169-
shared_ptr<T> p; // \expos
6169+
shared_ptr<T> @\exposid{p}@; // \expos
61706170
};
61716171
}
61726172
\end{codeblock}
@@ -6179,7 +6179,7 @@
61796179
\begin{itemdescr}
61806180
\pnum
61816181
\effects
6182-
Value-initializes \tcode{p}.
6182+
Value-initializes \exposid{p}.
61836183
\end{itemdescr}
61846184

61856185
\indexlibraryctor{atomic<shared_ptr<T>>}%
@@ -6220,7 +6220,7 @@
62206220
\pnum
62216221
\effects
62226222
Atomically replaces the value pointed to by \keyword{this} with
6223-
the value of \tcode{desired} as if by \tcode{p.swap(desired)}.
6223+
the value of \tcode{desired} as if by \tcode{\exposid{p}.swap(desired)}.
62246224
Memory is affected according to the value of \tcode{order}.
62256225
\end{itemdescr}
62266226

@@ -6265,7 +6265,7 @@
62656265

62666266
\pnum
62676267
\returns
6268-
Atomically returns \tcode{p}.
6268+
Atomically returns \exposid{p}.
62696269
\end{itemdescr}
62706270

62716271
\indexlibrarymember{operator shared_ptr<T>}{atomic<shared_ptr<T>>}%
@@ -6288,14 +6288,14 @@
62886288
\begin{itemdescr}
62896289
\pnum
62906290
\effects
6291-
Atomically replaces \tcode{p} with \tcode{desired}
6292-
as if by \tcode{p.swap(desired)}.
6291+
Atomically replaces \exposid{p} with \tcode{desired}
6292+
as if by \tcode{\exposid{p}.swap(desired)}.
62936293
Memory is affected according to the value of \tcode{order}.
62946294
This is an atomic read-modify-write operation\iref{intro.races}.
62956295

62966296
\pnum
62976297
\returns
6298-
Atomically returns the value of \tcode{p} immediately before the effects.
6298+
Atomically returns the value of \exposid{p} immediately before the effects.
62996299
\end{itemdescr}
63006300

63016301
\indexlibrarymember{compare_exchange_weak}{atomic<shared_ptr<T>>}%
@@ -6317,15 +6317,15 @@
63176317

63186318
\pnum
63196319
\effects
6320-
If \tcode{p} is equivalent to \tcode{expected},
6321-
assigns \tcode{desired} to \tcode{p} and
6320+
If \exposid{p} is equivalent to \tcode{expected},
6321+
assigns \tcode{desired} to \exposid{p} and
63226322
has synchronization semantics corresponding to the value of \tcode{success},
6323-
otherwise assigns \tcode{p} to \tcode{expected} and
6323+
otherwise assigns \exposid{p} to \tcode{expected} and
63246324
has synchronization semantics corresponding to the value of \tcode{failure}.
63256325

63266326
\pnum
63276327
\returns
6328-
\tcode{true} if \tcode{p} was equivalent to \tcode{expected},
6328+
\tcode{true} if \exposid{p} was equivalent to \tcode{expected},
63296329
\tcode{false} otherwise.
63306330

63316331
\pnum

0 commit comments

Comments
 (0)