diff options
author | Christopher Larson <chris_larson@mentor.com> | 2012-01-09 12:31:32 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-22 20:25:29 +0000 |
commit | cf60f95d9fc53828c1aa95198f24917aae2617e3 (patch) | |
tree | c96ba1e539f8a9b3d30e61bbd279086409c9f928 /bitbake/lib/ply | |
parent | 87e32edb88c30ac116fa396148ac26357051f93a (diff) | |
download | poky-cf60f95d9fc53828c1aa95198f24917aae2617e3.tar.gz |
cooker: roll our own process pool
This fixes the hang issue encountered with parse errors. The underlying issue
seems to have been the pool.terminate(). This sends SIGTERM to each of the
multiprocessing pool's processes, however, a python process terminating in
this fashion can corrupt any queues it's interacting with, causing a number of
problems for us (e.g. the queue that sends events to the UI).
So instead of using multiprocessing's pool, we roll our own, with the ability
to cancel the work. In the very long term, the python concurrent.futures
module introduced in python 3.2 could be used to resolve this as well.
(Bitbake rev: 7c39cfd8e060cca8753ac4114775447b18e13067)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/ply')
0 files changed, 0 insertions, 0 deletions