You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\tcode{pm == u_p.pm} and \tcode{owns == u_p.owns} (where \tcode{u_p} is the state of \tcode{u} just prior to this construction), \tcode{u.pm == 0} and \tcode{u.owns == false}.
7830
+
Equivalent to: \tcode{unique_lock(std::move(u)).swap(*this)}
7835
7831
7836
7832
\pnum
7837
-
\begin{note}
7838
-
With a recursive mutex it is possible for both \tcode{*this} and \tcode{u} to own the same mutex before the assignment. In this case, \tcode{*this} will own the mutex after the assignment and \tcode{u} will not.
7839
-
\end{note}
7840
-
7841
-
\pnum
7842
-
\throws
7843
-
Nothing.
7833
+
\returns
7834
+
\tcode{*this}.
7844
7835
\end{itemdescr}
7845
7836
7846
7837
\indexlibrarydtor{unique_lock}%
@@ -8327,13 +8318,11 @@
8327
8318
\begin{itemdescr}
8328
8319
\pnum
8329
8320
\effects
8330
-
If \tcode{owns} calls \tcode{pm->unlock_shared()}.
8321
+
Equivalent to: \tcode{shared_lock(std::move(sl)).swap(*this)}
8331
8322
8332
8323
\pnum
8333
-
\ensures
8334
-
\tcode{pm == sl_p.pm} and \tcode{owns == sl_p.owns} (where
8335
-
\tcode{sl_p} is the state of \tcode{sl} just prior to this assignment),
8336
-
\tcode{sl.pm == nullptr} and \tcode{sl.owns == false}.
0 commit comments