Message152566
| 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: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 |
|