cpp/thread/lock

Locks the given objects, , ,  using a deadlock avoidance algorithm to avoid deadlock.

The objects are locked by an unspecified series of calls to, , and. If a call to or  results in an exception,  is called for any locked objects before rethrowing.

Return value
(none)