diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2025-07-21 13:41:35 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-23 11:34:31 +0100 |
commit | c54fbf676159c57c8d73f983a55b63b580a5ce4c (patch) | |
tree | 889ed854aa92545b136e2285c7b9f666d737cb66 /bitbake | |
parent | d363bc475a80c7ac0b0126de6dbd2017287dc1d2 (diff) | |
download | poky-c54fbf676159c57c8d73f983a55b63b580a5ce4c.tar.gz |
bitbake: utils: Remove multiprocessingpool
This API is no longer used and bitbake has moved beyond Python 2.7.3 as
the minimum version, so remove it.
(Bitbake rev: 0eb7b5dd512ed8d8b77b5779858b9fbd99edb4a4)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/utils.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 5c464b18d3..0cf3b1814c 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -1479,22 +1479,6 @@ def process_profilelog(fn, fn_out = None): | |||
1479 | p.print_callers() | 1479 | p.print_callers() |
1480 | 1480 | ||
1481 | 1481 | ||
1482 | # | ||
1483 | # Was present to work around multiprocessing pool bugs in python < 2.7.3 | ||
1484 | # | ||
1485 | def multiprocessingpool(*args, **kwargs): | ||
1486 | |||
1487 | #multiprocessing.util.log_to_stderr(10) | ||
1488 | # Deal with a multiprocessing bug where signals to the processes would be delayed until the work | ||
1489 | # completes. Putting in a timeout means the signals (like SIGINT/SIGTERM) get processed. | ||
1490 | def wrapper(func): | ||
1491 | def wrap(self, timeout=None): | ||
1492 | return func(self, timeout=timeout if timeout is not None else 1e100) | ||
1493 | return wrap | ||
1494 | multiprocessing.pool.IMapIterator.next = wrapper(multiprocessing.pool.IMapIterator.next) | ||
1495 | |||
1496 | return multiprocessing.Pool(*args, **kwargs) | ||
1497 | |||
1498 | def exec_flat_python_func(func, *args, **kwargs): | 1482 | def exec_flat_python_func(func, *args, **kwargs): |
1499 | """Execute a flat python function (defined with ``def funcname(args): ...``) | 1483 | """Execute a flat python function (defined with ``def funcname(args): ...``) |
1500 | 1484 | ||