Skip to content

Commit 83b67af

Browse files
[util.smartptr.atomic.weak] Exposition-only style for p
1 parent c891d6f commit 83b67af

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

64966496
private:
6497-
weak_ptr<T> p; // \expos
6497+
weak_ptr<T> @\exposid{p}@; // \expos
64986498
};
64996499
}
65006500
\end{codeblock}
@@ -6507,7 +6507,7 @@
65076507
\begin{itemdescr}
65086508
\pnum
65096509
\effects
6510-
Value-initializes \tcode{p}.
6510+
Value-initializes \exposid{p}.
65116511
\end{itemdescr}
65126512

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

@@ -6582,7 +6582,7 @@
65826582

65836583
\pnum
65846584
\returns
6585-
Atomically returns \tcode{p}.
6585+
Atomically returns \exposid{p}.
65866586
\end{itemdescr}
65876587

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

66136613
\pnum
66146614
\returns
6615-
Atomically returns the value of \tcode{p} immediately before the effects.
6615+
Atomically returns the value of \exposid{p} immediately before the effects.
66166616
\end{itemdescr}
66176617

66186618
\indexlibrarymember{compare_exchange_weak}{atomic<weak_ptr<T>>}%
@@ -6633,15 +6633,15 @@
66336633

66346634
\pnum
66356635
\effects
6636-
If \tcode{p} is equivalent to \tcode{expected},
6637-
assigns \tcode{desired} to \tcode{p} and
6636+
If \exposid{p} is equivalent to \tcode{expected},
6637+
assigns \tcode{desired} to \exposid{p} and
66386638
has synchronization semantics corresponding to the value of \tcode{success},
6639-
otherwise assigns \tcode{p} to \tcode{expected} and
6639+
otherwise assigns \exposid{p} to \tcode{expected} and
66406640
has synchronization semantics corresponding to the value of \tcode{failure}.
66416641

66426642
\pnum
66436643
\returns
6644-
\tcode{true} if \tcode{p} was equivalent to \tcode{expected},
6644+
\tcode{true} if \exposid{p} was equivalent to \tcode{expected},
66456645
\tcode{false} otherwise.
66466646

66476647
\pnum

0 commit comments

Comments
 (0)