From c54fbf676159c57c8d73f983a55b63b580a5ce4c Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Mon, 21 Jul 2025 13:41:35 -0600 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/utils.py | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'bitbake/lib/bb') 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): p.print_callers() -# -# Was present to work around multiprocessing pool bugs in python < 2.7.3 -# -def multiprocessingpool(*args, **kwargs): - - #multiprocessing.util.log_to_stderr(10) - # Deal with a multiprocessing bug where signals to the processes would be delayed until the work - # completes. Putting in a timeout means the signals (like SIGINT/SIGTERM) get processed. - def wrapper(func): - def wrap(self, timeout=None): - return func(self, timeout=timeout if timeout is not None else 1e100) - return wrap - multiprocessing.pool.IMapIterator.next = wrapper(multiprocessing.pool.IMapIterator.next) - - return multiprocessing.Pool(*args, **kwargs) - def exec_flat_python_func(func, *args, **kwargs): """Execute a flat python function (defined with ``def funcname(args): ...``) -- cgit v1.2.3-54-g00ecf