Skip to content

Commit 33d0d18

Browse files
[util.smartptr.atomic.weak] Exposition-only style for p
1 parent 823db2d commit 33d0d18

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
@@ -6495,7 +6495,7 @@
64956495
constexpr void notify_all() noexcept;
64966496

64976497
private:
6498-
weak_ptr<T> p; // \expos
6498+
weak_ptr<T> @\exposid{p}@; // \expos
64996499
};
65006500
}
65016501
\end{codeblock}
@@ -6508,7 +6508,7 @@
65086508
\begin{itemdescr}
65096509
\pnum
65106510
\effects
6511-
Value-initializes \tcode{p}.
6511+
Value-initializes \exposid{p}.
65126512
\end{itemdescr}
65136513

65146514
\indexlibraryctor{atomic<weak_ptr<T>>}%
@@ -6549,7 +6549,7 @@
65496549
\pnum
65506550
\effects
65516551
Atomically replaces the value pointed to by \keyword{this} with
6552-
the value of \tcode{desired} as if by \tcode{p.swap(desired)}.
6552+
the value of \tcode{desired} as if by \tcode{\exposid{p}.swap(desired)}.
65536553
Memory is affected according to the value of \tcode{order}.
65546554
\end{itemdescr}
65556555

@@ -6583,7 +6583,7 @@
65836583

65846584
\pnum
65856585
\returns
6586-
Atomically returns \tcode{p}.
6586+
Atomically returns \exposid{p}.
65876587
\end{itemdescr}
65886588

65896589
\indexlibrarymember{operator weak_ptr<T>}{atomic<weak_ptr<T>>}%
@@ -6606,14 +6606,14 @@
66066606
\begin{itemdescr}
66076607
\pnum
66086608
\effects
6609-
Atomically replaces \tcode{p} with \tcode{desired}
6610-
as if by \tcode{p.swap(desired)}.
6609+
Atomically replaces \exposid{p} with \tcode{desired}
6610+
as if by \tcode{\exposid{p}.swap(desired)}.
66116611
Memory is affected according to the value of \tcode{order}.
66126612
This is an atomic read-modify-write operation\iref{intro.races}.
66136613

66146614
\pnum
66156615
\returns
6616-
Atomically returns the value of \tcode{p} immediately before the effects.
6616+
Atomically returns the value of \exposid{p} immediately before the effects.
66176617
\end{itemdescr}
66186618

66196619
\indexlibrarymember{compare_exchange_weak}{atomic<weak_ptr<T>>}%
@@ -6634,15 +6634,15 @@
66346634

66356635
\pnum
66366636
\effects
6637-
If \tcode{p} is equivalent to \tcode{expected},
6638-
assigns \tcode{desired} to \tcode{p} and
6637+
If \exposid{p} is equivalent to \tcode{expected},
6638+
assigns \tcode{desired} to \exposid{p} and
66396639
has synchronization semantics corresponding to the value of \tcode{success},
6640-
otherwise assigns \tcode{p} to \tcode{expected} and
6640+
otherwise assigns \exposid{p} to \tcode{expected} and
66416641
has synchronization semantics corresponding to the value of \tcode{failure}.
66426642

66436643
\pnum
66446644
\returns
6645-
\tcode{true} if \tcode{p} was equivalent to \tcode{expected},
6645+
\tcode{true} if \exposid{p} was equivalent to \tcode{expected},
66466646
\tcode{false} otherwise.
66476647

66486648
\pnum

0 commit comments

Comments
 (0)