mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
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.
This commit is contained in:
parent
2f0778675a
commit
ea25f32d5f
12 changed files with 1195 additions and 6 deletions
|
@ -129,6 +129,9 @@ winerror_to_errno(int winerror)
|
|||
case ERROR_NO_UNICODE_TRANSLATION: // 1113
|
||||
return EILSEQ;
|
||||
|
||||
case WAIT_TIMEOUT: // 258
|
||||
return ETIMEDOUT;
|
||||
|
||||
case ERROR_INVALID_FUNCTION: // 1
|
||||
case ERROR_INVALID_ACCESS: // 12
|
||||
case ERROR_INVALID_DATA: // 13
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue