diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-06 00:29:43 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-06 13:12:59 +0000 |
commit | bf25dd25c23143cca78aec58d673c0ba579c91e9 (patch) | |
tree | c093bf065b0b213804296dcc6e97721b32d5d04e /meta/classes/package.bbclass | |
parent | b34fd60d8fd6750663748c74fed82dd16a823ad4 (diff) | |
download | poky-bf25dd25c23143cca78aec58d673c0ba579c91e9.tar.gz |
package.bbclass: use the multiprocess pool from bitbake
(From OE-Core rev: 7e880a95840db82f4035959b03630ba2a96c0311)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r-- | meta/classes/package.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 61d90cc12e..8a4731be3c 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -872,7 +872,7 @@ python split_and_strip_files () { | |||
872 | 872 | ||
873 | import multiprocessing | 873 | import multiprocessing |
874 | nproc = multiprocessing.cpu_count() | 874 | nproc = multiprocessing.cpu_count() |
875 | pool = multiprocessing.Pool(nproc) | 875 | pool = bb.utils.multiprocessingpool(nproc) |
876 | processed = pool.imap(oe.package.runstrip, sfiles) | 876 | processed = pool.imap(oe.package.runstrip, sfiles) |
877 | pool.close() | 877 | pool.close() |
878 | pool.join() | 878 | pool.join() |
@@ -1221,7 +1221,7 @@ python package_do_filedeps() { | |||
1221 | 1221 | ||
1222 | import multiprocessing | 1222 | import multiprocessing |
1223 | nproc = multiprocessing.cpu_count() | 1223 | nproc = multiprocessing.cpu_count() |
1224 | pool = multiprocessing.Pool(nproc) | 1224 | pool = bb.utils.multiprocessingpool(nproc) |
1225 | processed = pool.imap(oe.package.filedeprunner, pkglist) | 1225 | processed = pool.imap(oe.package.filedeprunner, pkglist) |
1226 | pool.close() | 1226 | pool.close() |
1227 | pool.join() | 1227 | pool.join() |