diff options
author | Brett Simmers <swtaarrs@users.noreply.github.com> | 2024-05-07 03:07:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 03:07:23 (GMT) |
commit | 853163d3b5fa56d54a47817642c804b5d0c9f8e5 (patch) | |
tree | 5195947cdc876c0bb4f5de0be8d8f4a2e7e75a7f /.readthedocs.yml | |
parent | 60bd1118447e00755320cf8a0f439c827d498b51 (diff) | |
download | cpython-853163d3b5fa56d54a47817642c804b5d0c9f8e5.zip cpython-853163d3b5fa56d54a47817642c804b5d0c9f8e5.tar.gz cpython-853163d3b5fa56d54a47817642c804b5d0c9f8e5.tar.bz2 |
gh-116322: Enable the GIL while loading C extension modules (#118560)
Add the ability to enable/disable the GIL at runtime, and use that in
the C module loading code.
We can't know before running a module init function if it supports
free-threading, so the GIL is temporarily enabled before doing so. If
the module declares support for running without the GIL, the GIL is
later disabled. Otherwise, the GIL is permanently enabled, and will
never be disabled again for the life of the current interpreter.
Diffstat (limited to '.readthedocs.yml')
0 files changed, 0 insertions, 0 deletions