File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2699
2699
\effects Calls \tcode {try_lock()} for each argument in order beginning with the
2700
2700
first until all arguments have been processed or a call to \tcode {try_lock()} fails,
2701
2701
either by returning \tcode {false} or by throwing an exception. If a call to
2702
- \tcode {try_lock()} fails, \tcode {unlock()} shall be called for all prior arguments
2703
- and there shall be no further calls to \tcode {try_lock()}.
2702
+ \tcode {try_lock()} fails, \tcode {unlock()} is called for all prior arguments
2703
+ with no further calls to \tcode {try_lock()}.
2704
2704
2705
2705
\pnum
2706
2706
\returns \tcode {-1} if all calls to \tcode {try_lock()} returned \tcode {true},
2722
2722
2723
2723
\pnum
2724
2724
\effects All arguments are locked via a sequence of calls to \tcode {lock()},
2725
- \tcode {try_lock()}, or \tcode {unlock()} on each argument. The sequence of calls shall
2725
+ \tcode {try_lock()}, or \tcode {unlock()} on each argument. The sequence of calls does
2726
2726
not result in deadlock, but is otherwise unspecified. \begin {note } A deadlock avoidance
2727
2727
algorithm such as try-and-back-off must be used, but the specific algorithm is not
2728
2728
specified to avoid over-constraining implementations. \end {note } If a call to
2729
- \tcode {lock()} or \tcode {try_lock()} throws an exception, \tcode {unlock()} shall be
2729
+ \tcode {lock()} or \tcode {try_lock()} throws an exception, \tcode {unlock()} is
2730
2730
called for any argument that had been locked by a call to \tcode {lock()} or
2731
2731
\tcode {try_lock()}.
2732
2732
\end {itemdescr }
You can’t perform that action at this time.
0 commit comments