Skip to content

Commit 305505f

Browse files
[util.smartptr.atomic.weak] Exposition-only style for p
1 parent c3f57ba commit 305505f

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
@@ -6466,7 +6466,7 @@
64666466
constexpr void notify_all() noexcept;
64676467

64686468
private:
6469-
weak_ptr<T> p; // \expos
6469+
weak_ptr<T> @\exposid{p}@; // \expos
64706470
};
64716471
}
64726472
\end{codeblock}
@@ -6479,7 +6479,7 @@
64796479
\begin{itemdescr}
64806480
\pnum
64816481
\effects
6482-
Value-initializes \tcode{p}.
6482+
Value-initializes \exposid{p}.
64836483
\end{itemdescr}
64846484

64856485
\indexlibraryctor{atomic<weak_ptr<T>>}%
@@ -6520,7 +6520,7 @@
65206520
\pnum
65216521
\effects
65226522
Atomically replaces the value pointed to by \keyword{this} with
6523-
the value of \tcode{desired} as if by \tcode{p.swap(desired)}.
6523+
the value of \tcode{desired} as if by \tcode{\exposid{p}.swap(desired)}.
65246524
Memory is affected according to the value of \tcode{order}.
65256525
\end{itemdescr}
65266526

@@ -6554,7 +6554,7 @@
65546554

65556555
\pnum
65566556
\returns
6557-
Atomically returns \tcode{p}.
6557+
Atomically returns \exposid{p}.
65586558
\end{itemdescr}
65596559

65606560
\indexlibrarymember{operator weak_ptr<T>}{atomic<weak_ptr<T>>}%
@@ -6577,14 +6577,14 @@
65776577
\begin{itemdescr}
65786578
\pnum
65796579
\effects
6580-
Atomically replaces \tcode{p} with \tcode{desired}
6581-
as if by \tcode{p.swap(desired)}.
6580+
Atomically replaces \exposid{p} with \tcode{desired}
6581+
as if by \tcode{\exposid{p}.swap(desired)}.
65826582
Memory is affected according to the value of \tcode{order}.
65836583
This is an atomic read-modify-write operation\iref{intro.races}.
65846584

65856585
\pnum
65866586
\returns
6587-
Atomically returns the value of \tcode{p} immediately before the effects.
6587+
Atomically returns the value of \exposid{p} immediately before the effects.
65886588
\end{itemdescr}
65896589

65906590
\indexlibrarymember{compare_exchange_weak}{atomic<weak_ptr<T>>}%
@@ -6605,15 +6605,15 @@
66056605

66066606
\pnum
66076607
\effects
6608-
If \tcode{p} is equivalent to \tcode{expected},
6609-
assigns \tcode{desired} to \tcode{p} and
6608+
If \exposid{p} is equivalent to \tcode{expected},
6609+
assigns \tcode{desired} to \exposid{p} and
66106610
has synchronization semantics corresponding to the value of \tcode{success},
6611-
otherwise assigns \tcode{p} to \tcode{expected} and
6611+
otherwise assigns \exposid{p} to \tcode{expected} and
66126612
has synchronization semantics corresponding to the value of \tcode{failure}.
66136613

66146614
\pnum
66156615
\returns
6616-
\tcode{true} if \tcode{p} was equivalent to \tcode{expected},
6616+
\tcode{true} if \exposid{p} was equivalent to \tcode{expected},
66176617
\tcode{false} otherwise.
66186618

66196619
\pnum

0 commit comments

Comments
 (0)