]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89240: Enable multiprocessing on Windows to use large process pools (GH-107873)
authorSteve Dower <steve.dower@python.org>
Tue, 13 Feb 2024 00:28:35 +0000 (00:28 +0000)
committerGitHub <noreply@github.com>
Tue, 13 Feb 2024 00:28:35 +0000 (00:28 +0000)
commitea25f32d5f7d9ae4358338a3fb49bba9b68051a5
treecfc1ac858b799465b1354211b7d248277ee85b7b
parent2f0778675ad0eaf346924ef6a2f60529b92ffcfa
gh-89240: Enable multiprocessing on Windows to use large process pools (GH-107873)

We add _winapi.BatchedWaitForMultipleObjects to wait for larger numbers of handles.
This is an internal module, hence undocumented, and should be used with caution.
Check the docstring for info before using BatchedWaitForMultipleObjects.
12 files changed:
Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_global_strings.h
Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_unicodeobject_generated.h
Lib/multiprocessing/connection.py
Lib/test/_test_multiprocessing.py
Lib/test/test_winapi.py [new file with mode: 0644]
Misc/NEWS.d/next/Windows/2023-08-11-18-21-38.gh-issue-89240.dtSOLG.rst [new file with mode: 0644]
Modules/_winapi.c
Modules/clinic/_winapi.c.h
Objects/exceptions.c
PC/errmap.h