Message152566
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. |
|
Date |
User |
Action |
Args |
2012-02-03 21:29:23 | Ben.Timby | set | recipients:
+ Ben.Timby |
2012-02-03 21:29:23 | Ben.Timby | set | messageid: <1328304563.24.0.329312202759.issue13937@psf.upfronthosting.co.za> |
2012-02-03 21:29:22 | Ben.Timby | link | issue13937 messages |
2012-02-03 21:29:22 | Ben.Timby | create | |
|