Charles-François Natali <neolo...@free.fr> added the comment:

When map is called, a MapResult object is created, which adds itself to the 
Pool's result cache.
When the pool is shut down, the result handler thread waits until the cache 
drains (while cache and thread._state != TERMINATE). But since no result is 
posted to the result queue (since the iterable is empty), the result handler 
never receives any task, and never gets to drain the cache. It thus waits 
forever on the recv on the result queue.

----------
nosy: +charles-francois.natali

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12157>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to