Skip to content

Commit 59da206

Browse files
[thread.lock.guard] Exposition-only style for pm
1 parent 83b67af commit 59da206

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

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

@@ -8226,7 +8226,7 @@
82268226
\begin{itemdescr}
82278227
\pnum
82288228
\effects
8229-
Initializes \tcode{pm} with \tcode{m}. Calls \tcode{m.lock()}.
8229+
Initializes \exposid{pm} with \tcode{m}. Calls \tcode{m.lock()}.
82308230
\end{itemdescr}
82318231

82328232
\indexlibraryctor{lock_guard}%
@@ -8241,7 +8241,7 @@
82418241

82428242
\pnum
82438243
\effects
8244-
Initializes \tcode{pm} with \tcode{m}.
8244+
Initializes \exposid{pm} with \tcode{m}.
82458245

82468246
\pnum
82478247
\throws
@@ -8256,7 +8256,7 @@
82568256
\begin{itemdescr}
82578257
\pnum
82588258
\effects
8259-
Equivalent to: \tcode{pm.unlock()}
8259+
Equivalent to: \tcode{\exposid{pm}.unlock()}
82608260
\end{itemdescr}
82618261

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

0 commit comments

Comments
 (0)