|
1967 | 1967 |
|
1968 | 1968 | \pnum
|
1969 | 1969 | \throws
|
1970 |
| -Any exception thrown by \tcode{pm->lock()}. \tcode{system_error} if an exception |
1971 |
| -is required~(\ref{thread.req.exception}). \tcode{system_error} with an error |
1972 |
| -condition of \tcode{operation_not_permitted} if \tcode{pm} is 0. \tcode{system_error} |
1973 |
| -with an error condition of \tcode{resource_deadlock_would_occur} if on entry \tcode{owns} |
| 1970 | +Any exception thrown by \tcode{pm->lock()}. \tcode{system_error} when an exception |
| 1971 | +is required~(\ref{thread.req.exception}). |
| 1972 | + |
| 1973 | +\pnum |
| 1974 | +\errors |
| 1975 | +\begin{itemize} |
| 1976 | +\item \tcode{operation_not_permitted} --- if \tcode{pm} is \tcode{nullptr}. |
| 1977 | +\item \tcode{resource_deadlock_would_occur} --- if on entry \tcode{owns} |
1974 | 1978 | is \tcode{true}.
|
| 1979 | +\end{itemize} |
1975 | 1980 | \end{itemdescr}
|
1976 | 1981 |
|
1977 | 1982 | \indexlibrarymember{try_lock}{unique_lock}%
|
|
1993 | 1998 | \postconditions \tcode{owns == res}, where \tcode{res} is the value returned by
|
1994 | 1999 | the call to \tcode{try_lock()}.
|
1995 | 2000 |
|
1996 |
| -\pnum\throws |
1997 |
| -Any exception thrown by \tcode{pm->try_lock()}. \tcode{system_error} if an exception |
1998 |
| -is required~(\ref{thread.req.exception}). \tcode{system_error} with an error |
1999 |
| -condition of \tcode{operation_not_permitted} if \tcode{pm} is 0. \tcode{system_error} |
2000 |
| -with an error condition of \tcode{resource_deadlock_would_occur} if on entry \tcode{owns} |
| 2001 | +\pnum |
| 2002 | +\throws |
| 2003 | +Any exception thrown by \tcode{pm->try_lock()}. \tcode{system_error} when an exception |
| 2004 | +is required~(\ref{thread.req.exception}). |
| 2005 | + |
| 2006 | +\pnum |
| 2007 | +\errors |
| 2008 | +\begin{itemize} |
| 2009 | +\item \tcode{operation_not_permitted} --- if \tcode{pm} is \tcode{nullptr}. |
| 2010 | +\item \tcode{resource_deadlock_would_occur} --- if on entry \tcode{owns} |
2001 | 2011 | is \tcode{true}.
|
| 2012 | +\end{itemize} |
2002 | 2013 | \end{itemdescr}
|
2003 | 2014 |
|
2004 | 2015 | \indexlibrarymember{try_lock_until}{unique_lock}%
|
|
2023 | 2034 | the call to \tcode{try_lock_until(abs_time)}.
|
2024 | 2035 |
|
2025 | 2036 | \pnum
|
2026 |
| -\throws Any exception thrown by \tcode{pm->try_lock_until()}. \tcode{system_error} if an |
2027 |
| -exception is required~(\ref{thread.req.exception}). \tcode{system_error} with an error |
2028 |
| -condition of \tcode{operation_not_permitted} if \tcode{pm} is 0. \tcode{system_error} with an |
2029 |
| -error condition of \tcode{resource_deadlock_would_occur} if on entry \tcode{owns} is |
| 2037 | +\throws Any exception thrown by \tcode{pm->try_lock_until()}. \tcode{system_error} when an |
| 2038 | +exception is required~(\ref{thread.req.exception}). |
| 2039 | + |
| 2040 | +\pnum |
| 2041 | +\errors |
| 2042 | +\begin{itemize} |
| 2043 | +\item \tcode{operation_not_permitted} --- if \tcode{pm} is \tcode{nullptr}. |
| 2044 | +\item \tcode{resource_deadlock_would_occur} --- if on entry \tcode{owns} is |
2030 | 2045 | \tcode{true}.
|
| 2046 | +\end{itemize} |
2031 | 2047 | \end{itemdescr}
|
2032 | 2048 |
|
2033 | 2049 | \indexlibrarymember{try_lock_for}{unique_lock}%
|
|
2050 | 2066 | \postconditions \tcode{owns == res}, where \tcode{res} is the value returned by the call to \tcode{try_lock_for(rel_time)}.
|
2051 | 2067 |
|
2052 | 2068 | \pnum
|
2053 |
| -\throws Any exception thrown by \tcode{pm->try_lock_for()}. \tcode{system_error} if an |
2054 |
| -exception is required (\ref{thread.req.exception}). \tcode{system_error} with an error |
2055 |
| -condition of \tcode{operation_not_permitted} if \tcode{pm} is 0. \tcode{system_error} with an |
2056 |
| -error condition of \tcode{resource_deadlock_would_occur} if on entry \tcode{owns} is |
| 2069 | +\throws Any exception thrown by \tcode{pm->try_lock_for()}. \tcode{system_error} when an |
| 2070 | +exception is required (\ref{thread.req.exception}). |
| 2071 | + |
| 2072 | +\pnum |
| 2073 | +\errors |
| 2074 | +\begin{itemize} |
| 2075 | +\item \tcode{operation_not_permitted} --- if \tcode{pm} is \tcode{nullptr}. |
| 2076 | +\item \tcode{resource_deadlock_would_occur} --- if on entry \tcode{owns} is |
2057 | 2077 | \tcode{true}.
|
| 2078 | +\end{itemize} |
2058 | 2079 | \end{itemdescr}
|
2059 | 2080 |
|
2060 | 2081 | \indexlibrarymember{unlock}{unique_lock}%
|
|
2384 | 2405 |
|
2385 | 2406 | \pnum
|
2386 | 2407 | \throws Any exception thrown by \tcode{pm->lock_shared()}.
|
2387 |
| -\tcode{system_error} if an exception is required~(\ref{thread.req.exception}). |
2388 |
| -\tcode{system_error} with an error condition of |
2389 |
| -\tcode{operation_not_permitted} if \tcode{pm} is \tcode{nullptr}. |
2390 |
| -\tcode{system_error} with an error condition of |
2391 |
| -\tcode{resource_deadlock_would_occur} if on entry \tcode{owns} is \tcode{true}. |
| 2408 | +\tcode{system_error} when an exception is required~(\ref{thread.req.exception}). |
| 2409 | + |
| 2410 | +\pnum |
| 2411 | +\errors |
| 2412 | +\begin{itemize} |
| 2413 | +\item \tcode{operation_not_permitted} --- if \tcode{pm} is \tcode{nullptr}. |
| 2414 | +\item \tcode{resource_deadlock_would_occur} --- if on entry \tcode{owns} is |
| 2415 | +\tcode{true}. |
| 2416 | +\end{itemize} |
2392 | 2417 | \end{itemdescr}
|
2393 | 2418 |
|
2394 | 2419 | \indexlibrarymember{try_lock}{shared_lock}%
|
|
2409 | 2434 |
|
2410 | 2435 | \pnum
|
2411 | 2436 | \throws Any exception thrown by \tcode{pm->try_lock_shared()}.
|
2412 |
| -\tcode{system_error} if an exception is required~(\ref{thread.req.exception}). |
2413 |
| -\tcode{system_error} with an error condition of |
2414 |
| -\tcode{operation_not_permitted} if \tcode{pm} is \tcode{nullptr}. |
2415 |
| -\tcode{system_error} with an error condition of |
2416 |
| -\tcode{resource_deadlock_would_occur} if on entry \tcode{owns} is \tcode{true}. |
| 2437 | +\tcode{system_error} when an exception is required~(\ref{thread.req.exception}). |
2417 | 2438 |
|
| 2439 | +\pnum |
| 2440 | +\errors |
| 2441 | +\begin{itemize} |
| 2442 | +\item \tcode{operation_not_permitted} --- if \tcode{pm} is \tcode{nullptr}. |
| 2443 | +\item \tcode{resource_deadlock_would_occur} --- if on entry \tcode{owns} is |
| 2444 | +\tcode{true}. |
| 2445 | +\end{itemize} |
2418 | 2446 | \end{itemdescr}
|
2419 | 2447 |
|
2420 | 2448 | \indexlibrarymember{try_lock_until}{shared_lock}%
|
|
2438 | 2466 |
|
2439 | 2467 | \pnum
|
2440 | 2468 | \throws Any exception thrown by \tcode{pm->try_lock_shared_until(abs_time)}.
|
2441 |
| -\tcode{system_error} if an exception is required~(\ref{thread.req.exception}). |
2442 |
| -\tcode{system_error} with an error condition of |
2443 |
| -\tcode{operation_not_permitted} if \tcode{pm} is \tcode{nullptr}. |
2444 |
| -\tcode{system_error} with an error condition of |
2445 |
| -\tcode{resource_deadlock_would_occur} if on entry \tcode{owns} is \tcode{true}. |
| 2469 | +\tcode{system_error} when an exception is required~(\ref{thread.req.exception}). |
| 2470 | + |
| 2471 | +\pnum |
| 2472 | +\errors |
| 2473 | +\begin{itemize} |
| 2474 | +\item \tcode{operation_not_permitted} --- if \tcode{pm} is \tcode{nullptr}. |
| 2475 | +\item \tcode{resource_deadlock_would_occur} --- if on entry \tcode{owns} is |
| 2476 | +\tcode{true}. |
| 2477 | +\end{itemize} |
2446 | 2478 | \end{itemdescr}
|
2447 | 2479 |
|
2448 | 2480 | \indexlibrarymember{try_lock_for}{shared_lock}%
|
|
2462 | 2494 | \postconditions \tcode{owns == res}, where \tcode{res} is the value returned by the call to \tcode{pm->try_lock_shared_for(rel_time)}.
|
2463 | 2495 |
|
2464 | 2496 | \pnum
|
2465 |
| -\throws Any exception thrown by \tcode{pm->try_lock_shared_for(rel_time)}. \tcode{system_error} if an exception is required ~(\ref{thread.req.exception}). \tcode{system_error} with an error condition of \tcode{operation_not_permitted} if \tcode{pm} is \tcode{nullptr}. \tcode{system_error} with an error condition of \tcode{resource_deadlock_would_occur} if on entry \tcode{owns} is \tcode{true}. |
| 2497 | +\throws Any exception thrown by \tcode{pm->try_lock_shared_for(rel_time)}. \tcode{system_error} when an exception is required~(\ref{thread.req.exception}). |
| 2498 | + |
| 2499 | +\pnum |
| 2500 | +\errors |
| 2501 | +\begin{itemize} |
| 2502 | +\item \tcode{operation_not_permitted} --- if \tcode{pm} is \tcode{nullptr}. |
| 2503 | +\item \tcode{resource_deadlock_would_occur} --- if on entry \tcode{owns} is |
| 2504 | +\tcode{true}. |
| 2505 | +\end{itemize} |
2466 | 2506 | \end{itemdescr}
|
2467 | 2507 |
|
2468 | 2508 | \indexlibrarymember{unlock}{shared_lock}%
|
|
0 commit comments