Skip to content
Merged
Prev Previous commit
Next Next commit
seealso for with-locks
  • Loading branch information
samatjain committed Apr 26, 2023
commit f398ed13932159d2c579979d17df223791abd49e
4 changes: 4 additions & 0 deletions Doc/library/threading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,10 @@ and its :meth:`~Lock.release` method to unlock it. Reentrant locks
support the :ref:`context management protocol <with-locks>` so :keyword:`with` can be used
to acquire and release the lock automatically in a block of code.

.. seealso::

:ref:`with-locks`.
Comment thread
samatjain marked this conversation as resolved.
Outdated

RLock's :meth:`~RLock.acquire`/:meth:`~RLock.release` call pairs may be nested,
unlike Lock's :meth:`~Lock.acquire`/:meth:`~Lock.release`. Only the final
:meth:`~RLock.release` (the :meth:`~Lock.release` of the outermost pair) resets
Expand Down