This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: multiprocessing: simplify ApplyResult and MapResult with threading.Event
Type: behavior Stage: resolved
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: asksol, jnoller, neologix, pitrou, python-dev, sbt
Priority: low Keywords: patch

Created on 2011-05-16 19:52 by neologix, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
multiprocessing_event.diff neologix, 2011-05-16 19:52 patch replacing custom signaling scheme with threading.Event review
Messages (2)
msg136122 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2011-05-16 19:52
Multiprocessing's MapResult and ApplyResult use a notification mechanism to signal callers when the underlying value is available.
Instead of re-inventing the wheel, we could use threading.Event instead: this leads to cleaner and simpler code (with no noticable performance impact).
Patch attached.
msg161579 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-05-25 12:29
New changeset 57d6265beaaa by Richard Oudkerk in branch 'default':
Issue #12091: simplify ApplyResult and MapResult with threading.Event
http://hg.python.org/cpython/rev/57d6265beaaa
History
Date User Action Args
2022-04-11 14:57:17adminsetgithub: 56300
2012-05-25 19:40:08sbtsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2012-05-25 12:29:01python-devsetnosy: + python-dev
messages: + msg161579
2012-05-16 16:44:38pitrousetnosy: + sbt
2011-05-17 14:08:43pitrousetnosy: + pitrou
2011-05-16 19:52:30neologixcreate