summaryrefslogtreecommitdiffstats
path: root/.readthedocs.yml
diff options
context:
space:
mode:
authorBrett Simmers <swtaarrs@users.noreply.github.com>2024-05-07 03:07:23 (GMT)
committerGitHub <noreply@github.com>2024-05-07 03:07:23 (GMT)
commit853163d3b5fa56d54a47817642c804b5d0c9f8e5 (patch)
tree5195947cdc876c0bb4f5de0be8d8f4a2e7e75a7f /.readthedocs.yml
parent60bd1118447e00755320cf8a0f439c827d498b51 (diff)
downloadcpython-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