summaryrefslogtreecommitdiffstats
path: root/Modules/_blake2
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 /Modules/_blake2
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 'Modules/_blake2')
-rw-r--r--Modules/_blake2/blake2module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_blake2/blake2module.c b/Modules/_blake2/blake2module.c
index 44d783b..0d1d88c 100644
--- a/Modules/_blake2/blake2module.c
+++ b/Modules/_blake2/blake2module.c
@@ -127,6 +127,7 @@ blake2_exec(PyObject *m)
static PyModuleDef_Slot _blake2_slots[] = {
{Py_mod_exec, blake2_exec},
+ {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
{0, NULL}
};
@@ -146,4 +147,4 @@ PyMODINIT_FUNC
PyInit__blake2(void)
{
return PyModuleDef_Init(&blake2_module);
-} \ No newline at end of file
+}