Issue #14087: multiprocessing: add Condition.wait_for(). Patch by sbt.

This commit is contained in:
Charles-François Natali 2012-04-17 18:45:57 +02:00
parent a3f4457b17
commit c8ce715a82
5 changed files with 113 additions and 0 deletions

View file

@ -897,6 +897,9 @@ object -- see :ref:`multiprocessing-managers`.
If *lock* is specified then it should be a :class:`Lock` or :class:`RLock`
object from :mod:`multiprocessing`.
.. versionchanged:: 3.3
The :meth:`wait_for` method was added.
.. class:: Event()
A clone of :class:`threading.Event`.
@ -1281,6 +1284,9 @@ their parent process exits. The manager classes are defined in the
If *lock* is supplied then it should be a proxy for a
:class:`threading.Lock` or :class:`threading.RLock` object.
.. versionchanged:: 3.3
The :meth:`wait_for` method was added.
.. method:: Event()
Create a shared :class:`threading.Event` object and return a proxy for it.