[New-bugs-announce] [issue12091] multiprocessing: simplify ApplyResult and MapResult with threading.Event

Charles-François Natali report at bugs.python.org
Mon May 16 21:52:30 CEST 2011


New submission from Charles-François Natali <neologix at free.fr>:

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.

----------
components: Library (Lib)
files: multiprocessing_event.diff
keywords: patch
messages: 136122
nosy: asksol, jnoller, neologix
priority: low
severity: normal
stage: patch review
status: open
title: multiprocessing: simplify ApplyResult and MapResult with threading.Event
type: behavior
Added file: http://bugs.python.org/file22009/multiprocessing_event.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12091>
_______________________________________


More information about the New-bugs-announce mailing list