New submission from Ben Timby <bti...@gmail.com>: 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. ---------- components: Library (Lib) messages: 152566 nosy: Ben.Timby priority: normal severity: normal status: open title: multiprocessing.ThreadPool.join() blocks indefinitely. type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13937> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com