summaryrefslogtreecommitdiffstats
path: root/Modules/_interpchannelsmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-131082: Add missing guards for WIN32_LEAN_AND_MEAN (GH-131044) ↵Miss Islington (bot)2025-03-111-1/+3
| | | | | | | (#131084) (cherry picked from commit de8818ae233b8e7722aa5d6f91d4b5a04bd039df) Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>
* [3.13] gh-126433: Fix compiler warnings on 32-bit Windows (#126444) (#126827)Victor Stinner2024-11-141-1/+1
| | | | | gh-126433: Fix compiler warnings on 32-bit Windows (#126444) (cherry picked from commit 0b67ce930a56c4ffd597b1a658ddcbacfb40e798)
* [3.13] gh-126433: Change channel_info.count to int64_t (GH-126447) (#126826)Miss Islington (bot)2024-11-141-1/+1
| | | | | | | | | gh-126433: Change channel_info.count to int64_t (GH-126447) Fix compiler warnings on 32-bit Windows: change channel_info.count type from Py_ssize_t to int64_t in _interpchannelsmodule.c. (cherry picked from commit 09d7083962062acfef7e7a9a309a01fb70ad8276) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-125716: Use a Global Mutex When Initializing Global State For the ↵Miss Islington (bot)2024-10-211-25/+39
| | | | | | | | | | | _interpqueues Module (gh-125817) This includes a drive-by cleanup in _queues_init() and _queues_fini(). This change also applies to the _interpchannels module. (cherry picked from commit 4848b0b92ce2737cea08fa3b322fd0f0a671bb07, AKA gh-125803) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.13] gh-125716: Raise an Exception If _globals_init() Fails In the ↵Miss Islington (bot)2024-10-211-1/+2
| | | | | | | | | | | _interpqueues Module (gh-125808) The fix applies to the _interpchannels module as well. I've also included a drive-by typo fix for _interpqueues. (cherry picked from commit 44f841f01af0fb038e142a07f15eda1ecdd5b08a, AKA gh-125802) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.13] gh-76785: Expand How Interpreter Channels Handle Interpreter ↵Miss Islington (bot)2024-07-151-70/+274
| | | | | | | | | Finalization (gh-121811) See 6b98b274b6 for an explanation of the problem and solution. Here I've applied the solution to channels. (cherry picked from commit 8b209fd4f8a9bf9603888bda2c44b5cfd4ebf47a, AKA gh-121805) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.13] gh-121596: Fix Sharing Interpreter Channels (gh-121600)Miss Islington (bot)2024-07-101-2/+2
| | | | | | | This fixes a mistake in gh-113012 and adds a test that verifies the fix. (cherry picked from commit 35a67e36aa7cb0fc915771327f58bb0c70213867, AKA gh-121597) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.13] gh-121374: Correct docstrings in `_interpchannels` (gh-121501)Miss Islington (bot)2024-07-081-2/+2
| | | | | (cherry picked from commit 5289550b33de3d56f89a5d44a665283f7c8483a7, AKA gh-121418) Co-authored-by: Max Muoto <maxmuoto@gmail.com>
* gh-116322: Add Py_mod_gil module slot (#116882)Brett Simmers2024-05-031-0/+1
| | | | | | | | | | | | | | This PR adds the ability to enable the GIL if it was disabled at interpreter startup, and modifies the multi-phase module initialization path to enable the GIL when loading a module, unless that module's spec includes a slot indicating it can run safely without the GIL. PEP 703 called the constant for the slot `Py_mod_gil_not_used`; I went with `Py_MOD_GIL_NOT_USED` for consistency with gh-104148. A warning will be issued up to once per interpreter for the first GIL-using module that is loaded. If `-v` is given, a shorter message will be printed to stderr every time a GIL-using module is loaded (including the first one that issues a warning).
* gh-76785: Rename _xxsubinterpreters to _interpreters (gh-117791)Eric Snow2024-04-241-0/+3380
See https://discuss.python.org/t/pep-734-multiple-interpreters-in-the-stdlib/41147/26.