mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Issue #14087: multiprocessing: add Condition.wait_for(). Patch by sbt.
This commit is contained in:
parent
a3f4457b17
commit
c8ce715a82
5 changed files with 113 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue