Skip to content

Commit fdd8a8e

Browse files
[thread.lock.scoped] Exposition-only style for pm
1 parent 32d575b commit fdd8a8e

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
@@ -8278,7 +8278,7 @@
82788278
scoped_lock& operator=(const scoped_lock&) = delete;
82798279

82808280
private:
8281-
tuple<MutexTypes&...> pm; // \expos
8281+
tuple<MutexTypes&...> @\exposid{pm}@; // \expos
82828282
};
82838283
}
82848284
\end{codeblock}
@@ -8288,7 +8288,7 @@
82888288
within a scope. A \tcode{scoped_lock} object maintains ownership of lockable
82898289
objects throughout the \tcode{scoped_lock} object's lifetime\iref{basic.life}.
82908290
The behavior of a program is undefined if the lockable objects referenced by
8291-
\tcode{pm} do not exist for the entire lifetime of the \tcode{scoped_lock}
8291+
\exposid{pm} do not exist for the entire lifetime of the \tcode{scoped_lock}
82928292
object.
82938293
\begin{itemize}
82948294
\item
@@ -8312,7 +8312,7 @@
83128312
\begin{itemdescr}
83138313
\pnum
83148314
\effects
8315-
Initializes \tcode{pm} with \tcode{tie(m...)}.
8315+
Initializes \exposid{pm} with \tcode{tie(m...)}.
83168316
Then if \tcode{sizeof...(MutexTypes)} is \tcode{0}, no effects.
83178317
Otherwise if \tcode{sizeof...(MutexTypes)} is \tcode{1}, then \tcode{m.lock()}.
83188318
Otherwise, \tcode{lock(m...)}.
@@ -8330,7 +8330,7 @@
83308330

83318331
\pnum
83328332
\effects
8333-
Initializes \tcode{pm} with \tcode{tie(m...)}.
8333+
Initializes \exposid{pm} with \tcode{tie(m...)}.
83348334

83358335
\pnum
83368336
\throws
@@ -8346,7 +8346,7 @@
83468346
\pnum
83478347
\effects
83488348
For all \tcode{i} in \range{0}{sizeof...(MutexTypes)},
8349-
\tcode{get<i>(pm).unlock()}.
8349+
\tcode{get<i>(\exposid{pm}).unlock()}.
83508350
\end{itemdescr}
83518351

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

0 commit comments

Comments
 (0)