mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +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
|
|
@ -3539,7 +3539,6 @@ SimpleExtendsException(PyExc_Warning, ResourceWarning,
|
|||
#undef EOPNOTSUPP
|
||||
#undef EPROTONOSUPPORT
|
||||
#undef EPROTOTYPE
|
||||
#undef ETIMEDOUT
|
||||
#undef EWOULDBLOCK
|
||||
|
||||
#if defined(WSAEALREADY) && !defined(EALREADY)
|
||||
|
|
@ -3560,9 +3559,6 @@ SimpleExtendsException(PyExc_Warning, ResourceWarning,
|
|||
#if defined(WSAESHUTDOWN) && !defined(ESHUTDOWN)
|
||||
#define ESHUTDOWN WSAESHUTDOWN
|
||||
#endif
|
||||
#if defined(WSAETIMEDOUT) && !defined(ETIMEDOUT)
|
||||
#define ETIMEDOUT WSAETIMEDOUT
|
||||
#endif
|
||||
#if defined(WSAEWOULDBLOCK) && !defined(EWOULDBLOCK)
|
||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
#endif
|
||||
|
|
@ -3747,6 +3743,9 @@ _PyExc_InitState(PyInterpreterState *interp)
|
|||
#endif
|
||||
ADD_ERRNO(ProcessLookupError, ESRCH);
|
||||
ADD_ERRNO(TimeoutError, ETIMEDOUT);
|
||||
#ifdef WSAETIMEDOUT
|
||||
ADD_ERRNO(TimeoutError, WSAETIMEDOUT);
|
||||
#endif
|
||||
|
||||
return _PyStatus_OK();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue