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.

Author Ben.Timby
Recipients Ben.Timby
Date 2012-02-03.21:29:22
SpamBayes Score 7.1701646e-07
Marked as misclassified No
Message-id <1328304563.24.0.329312202759.issue13937@psf.upfronthosting.co.za>
In-reply-to
Content
If you instantiate a ThreadPool, then call map() with an empty list, the join() method will block indefinitely on self._result_handler.join()

$ python
> from multiprocessing.pool import ThreadPool
> t = ThreadPool(1)
> t.map_async(lambda x: x, [])
> t.close()
> t.join()  # <- never returns

I was not able to determine the root cause, however, I found that the join() blocks when joining the _result_handler thread.
History
Date User Action Args
2012-02-03 21:29:23Ben.Timbysetrecipients: + Ben.Timby
2012-02-03 21:29:23Ben.Timbysetmessageid: <1328304563.24.0.329312202759.issue13937@psf.upfronthosting.co.za>
2012-02-03 21:29:22Ben.Timbylinkissue13937 messages
2012-02-03 21:29:22Ben.Timbycreate