Skip to content

Commit 9579dba

Browse files
[thread.lock.guard] Exposition-only style for pm
1 parent 305505f commit 9579dba

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
@@ -8176,7 +8176,7 @@
81768176
lock_guard& operator=(const lock_guard&) = delete;
81778177

81788178
private:
8179-
mutex_type& pm; // \expos
8179+
mutex_type& @\exposid{pm}@; // \expos
81808180
};
81818181
}
81828182
\end{codeblock}
@@ -8186,7 +8186,7 @@
81868186
within a scope. A \tcode{lock_guard} object maintains ownership of a lockable
81878187
object throughout the \tcode{lock_guard} object's lifetime\iref{basic.life}.
81888188
The behavior of a program is undefined if the lockable object referenced by
8189-
\tcode{pm} does not exist for the entire lifetime of the \tcode{lock_guard}
8189+
\exposid{pm} does not exist for the entire lifetime of the \tcode{lock_guard}
81908190
object. The supplied \tcode{Mutex} type shall meet the \oldconcept{BasicLockable}
81918191
requirements\iref{thread.req.lockable.basic}.
81928192

@@ -8198,7 +8198,7 @@
81988198
\begin{itemdescr}
81998199
\pnum
82008200
\effects
8201-
Initializes \tcode{pm} with \tcode{m}. Calls \tcode{m.lock()}.
8201+
Initializes \exposid{pm} with \tcode{m}. Calls \tcode{m.lock()}.
82028202
\end{itemdescr}
82038203

82048204
\indexlibraryctor{lock_guard}%
@@ -8213,7 +8213,7 @@
82138213

82148214
\pnum
82158215
\effects
8216-
Initializes \tcode{pm} with \tcode{m}.
8216+
Initializes \exposid{pm} with \tcode{m}.
82178217

82188218
\pnum
82198219
\throws
@@ -8228,7 +8228,7 @@
82288228
\begin{itemdescr}
82298229
\pnum
82308230
\effects
8231-
Equivalent to: \tcode{pm.unlock()}
8231+
Equivalent to: \tcode{\exposid{pm}.unlock()}
82328232
\end{itemdescr}
82338233

82348234
\rSec3[thread.lock.scoped]{Class template \tcode{scoped_lock}}

0 commit comments

Comments
 (0)