Skip to content

Commit 77c56aa

Browse files
[thread.lock.scoped] Exposition-only style for pm
1 parent 9579dba commit 77c56aa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/threads.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8249,7 +8249,7 @@
82498249
scoped_lock& operator=(const scoped_lock&) = delete;
82508250

82518251
private:
8252-
tuple<MutexTypes&...> pm; // \expos
8252+
tuple<MutexTypes&...> @\exposid{pm}@; // \expos
82538253
};
82548254
}
82558255
\end{codeblock}
@@ -8259,7 +8259,7 @@
82598259
within a scope. A \tcode{scoped_lock} object maintains ownership of lockable
82608260
objects throughout the \tcode{scoped_lock} object's lifetime\iref{basic.life}.
82618261
The behavior of a program is undefined if the lockable objects referenced by
8262-
\tcode{pm} do not exist for the entire lifetime of the \tcode{scoped_lock}
8262+
\exposid{pm} do not exist for the entire lifetime of the \tcode{scoped_lock}
82638263
object.
82648264
\begin{itemize}
82658265
\item
@@ -8283,7 +8283,7 @@
82838283
\begin{itemdescr}
82848284
\pnum
82858285
\effects
8286-
Initializes \tcode{pm} with \tcode{tie(m...)}.
8286+
Initializes \exposid{pm} with \tcode{tie(m...)}.
82878287
Then if \tcode{sizeof...(MutexTypes)} is \tcode{0}, no effects.
82888288
Otherwise if \tcode{sizeof...(MutexTypes)} is \tcode{1}, then \tcode{m.lock()}.
82898289
Otherwise, \tcode{lock(m...)}.
@@ -8301,7 +8301,7 @@
83018301

83028302
\pnum
83038303
\effects
8304-
Initializes \tcode{pm} with \tcode{tie(m...)}.
8304+
Initializes \exposid{pm} with \tcode{tie(m...)}.
83058305

83068306
\pnum
83078307
\throws
@@ -8317,7 +8317,7 @@
83178317
\pnum
83188318
\effects
83198319
For all \tcode{i} in \range{0}{sizeof...(MutexTypes)},
8320-
\tcode{get<i>(pm).unlock()}.
8320+
\tcode{get<i>(\exposid{pm}).unlock()}.
83218321
\end{itemdescr}
83228322

83238323
\rSec3[thread.lock.unique]{Class template \tcode{unique_lock}}

0 commit comments

Comments
 (0)