Skip to content

Commit 32d575b

Browse files
[thread.lock.guard] Exposition-only style for pm
1 parent 33d0d18 commit 32d575b

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
@@ -8205,7 +8205,7 @@
82058205
lock_guard& operator=(const lock_guard&) = delete;
82068206

82078207
private:
8208-
mutex_type& pm; // \expos
8208+
mutex_type& @\exposid{pm}@; // \expos
82098209
};
82108210
}
82118211
\end{codeblock}
@@ -8215,7 +8215,7 @@
82158215
within a scope. A \tcode{lock_guard} object maintains ownership of a lockable
82168216
object throughout the \tcode{lock_guard} object's lifetime\iref{basic.life}.
82178217
The behavior of a program is undefined if the lockable object referenced by
8218-
\tcode{pm} does not exist for the entire lifetime of the \tcode{lock_guard}
8218+
\exposid{pm} does not exist for the entire lifetime of the \tcode{lock_guard}
82198219
object. The supplied \tcode{Mutex} type shall meet the \oldconcept{BasicLockable}
82208220
requirements\iref{thread.req.lockable.basic}.
82218221

@@ -8227,7 +8227,7 @@
82278227
\begin{itemdescr}
82288228
\pnum
82298229
\effects
8230-
Initializes \tcode{pm} with \tcode{m}. Calls \tcode{m.lock()}.
8230+
Initializes \exposid{pm} with \tcode{m}. Calls \tcode{m.lock()}.
82318231
\end{itemdescr}
82328232

82338233
\indexlibraryctor{lock_guard}%
@@ -8242,7 +8242,7 @@
82428242

82438243
\pnum
82448244
\effects
8245-
Initializes \tcode{pm} with \tcode{m}.
8245+
Initializes \exposid{pm} with \tcode{m}.
82468246

82478247
\pnum
82488248
\throws
@@ -8257,7 +8257,7 @@
82578257
\begin{itemdescr}
82588258
\pnum
82598259
\effects
8260-
Equivalent to: \tcode{pm.unlock()}
8260+
Equivalent to: \tcode{\exposid{pm}.unlock()}
82618261
\end{itemdescr}
82628262

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

0 commit comments

Comments
 (0)