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 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 }
82148214within a scope. A \tcode {lock_guard} object maintains ownership of a lockable
82158215object throughout the \tcode {lock_guard} object's lifetime\iref {basic.life }.
82168216The 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}
82188218object. The supplied \tcode {Mutex} type shall meet the \oldconcept {BasicLockable}
82198219requirements\iref {thread.req.lockable.basic }.
82208220
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}%
82418241
82428242\pnum
82438243\effects
8244- Initializes \tcode {pm} with \tcode {m}.
8244+ Initializes \exposid {pm} with \tcode {m}.
82458245
82468246\pnum
82478247\throws
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\rSec 3[thread.lock.scoped]{Class template \tcode {scoped_lock}}
You can’t perform that action at this time.
0 commit comments