Skip to content

Commit f51ebf9

Browse files
committed
threading primitives now have timeouts
1 parent 992ca52 commit f51ebf9

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎Doc/library/multiprocessing.rst‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -876,14 +876,6 @@ object -- see :ref:`multiprocessing-managers`.
876876

877877
.. note::
878878

879-
The :meth:`acquire` method of :class:`BoundedSemaphore`, :class:`Lock`,
880-
:class:`RLock` and :class:`Semaphore` has a timeout parameter not supported
881-
by the equivalents in :mod:`threading`. The signature is
882-
``acquire(block=True, timeout=None)`` with keyword parameters being
883-
acceptable. If *block* is ``True`` and *timeout* is not ``None`` then it
884-
specifies a timeout in seconds. If *block* is ``False`` then *timeout* is
885-
ignored.
886-
887879
On Mac OS X, ``sem_timedwait`` is unsupported, so calling ``acquire()`` with
888880
a timeout will emulate that function's behavior using a sleeping loop.
889881

0 commit comments

Comments
 (0)