summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-05-05 21:11:27 (GMT)
committerGitHub <noreply@github.com>2023-05-05 21:11:27 (GMT)
commita9c6e0618f26270e2591b3d99ffeef55eea02a33 (patch)
tree81bdd175c8c3b61aa3aab02cac66a122f1372871 /PC
parent1c420e138fd828895b6bd3c44ef99156e8796095 (diff)
downloadcpython-a9c6e0618f26270e2591b3d99ffeef55eea02a33.zip
cpython-a9c6e0618f26270e2591b3d99ffeef55eea02a33.tar.gz
cpython-a9c6e0618f26270e2591b3d99ffeef55eea02a33.tar.bz2
gh-99113: Add Py_MOD_PER_INTERPRETER_GIL_SUPPORTED (gh-104205)
Here we are doing no more than adding the value for Py_mod_multiple_interpreters and using it for stdlib modules. We will start checking for it in gh-104206 (once PyInterpreterState.ceval.own_gil is added in gh-104204).
Diffstat (limited to 'PC')
-rw-r--r--PC/_testconsole.c1
-rw-r--r--PC/msvcrtmodule.c1
-rw-r--r--PC/winreg.c1
-rw-r--r--PC/winsound.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/PC/_testconsole.c b/PC/_testconsole.c
index f14a2d4..3221b98 100644
--- a/PC/_testconsole.c
+++ b/PC/_testconsole.c
@@ -31,6 +31,7 @@ static int execfunc(PyObject *m)
PyModuleDef_Slot testconsole_slots[] = {
{Py_mod_exec, execfunc},
+ {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
{0, NULL},
};
diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c
index 090254b..53ef26b 100644
--- a/PC/msvcrtmodule.c
+++ b/PC/msvcrtmodule.c
@@ -661,6 +661,7 @@ exec_module(PyObject* m)
static PyModuleDef_Slot msvcrt_slots[] = {
{Py_mod_exec, exec_module},
+ {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
{0, NULL}
};
diff --git a/PC/winreg.c b/PC/winreg.c
index 4884125..e2d5322 100644
--- a/PC/winreg.c
+++ b/PC/winreg.c
@@ -2184,6 +2184,7 @@ exec_module(PyObject *m)
static PyModuleDef_Slot winreg_slots[] = {
{Py_mod_exec, exec_module},
+ {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
{0, NULL}
};
diff --git a/PC/winsound.c b/PC/winsound.c
index 17ce2ef..68a9178 100644
--- a/PC/winsound.c
+++ b/PC/winsound.c
@@ -235,6 +235,7 @@ exec_module(PyObject *module)
static PyModuleDef_Slot sound_slots[] = {
{Py_mod_exec, exec_module},
+ {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
{0, NULL}
};