mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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).
This commit is contained in:
parent
1c420e138f
commit
a9c6e0618f
99 changed files with 144 additions and 4 deletions
|
|
@ -87,6 +87,7 @@ struct PyModuleDef_Slot {
|
|||
/* for Py_mod_multiple_interpreters: */
|
||||
#define Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED ((void *)0)
|
||||
#define Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED ((void *)1)
|
||||
#define Py_MOD_PER_INTERPRETER_GIL_SUPPORTED ((void *)2)
|
||||
|
||||
#endif /* New in 3.5 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue