File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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 }
81868186within a scope. A \tcode {lock_guard} object maintains ownership of a lockable
81878187object throughout the \tcode {lock_guard} object's lifetime\iref {basic.life }.
81888188The 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}
81908190object. The supplied \tcode {Mutex} type shall meet the \oldconcept {BasicLockable}
81918191requirements\iref {thread.req.lockable.basic }.
81928192
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}%
82138213
82148214\pnum
82158215\effects
8216- Initializes \tcode {pm} with \tcode {m}.
8216+ Initializes \exposid {pm} with \tcode {m}.
82178217
82188218\pnum
82198219\throws
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\rSec 3[thread.lock.scoped]{Class template \tcode {scoped_lock}}
You can’t perform that action at this time.
0 commit comments