mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-111863: Rename Py_NOGIL
to Py_GIL_DISABLED
(#111864)
Rename Py_NOGIL to Py_GIL_DISABLED
This commit is contained in:
parent
1c8f912ebd
commit
3b3ec0d77f
39 changed files with 82 additions and 81 deletions
|
@ -57,12 +57,12 @@ _sysconfig_config_vars_impl(PyObject *module)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef Py_NOGIL
|
||||
#ifdef Py_GIL_DISABLED
|
||||
PyObject *py_nogil = _PyLong_GetOne();
|
||||
#else
|
||||
PyObject *py_nogil = _PyLong_GetZero();
|
||||
#endif
|
||||
if (PyDict_SetItemString(config, "Py_NOGIL", py_nogil) < 0) {
|
||||
if (PyDict_SetItemString(config, "Py_GIL_DISABLED", py_nogil) < 0) {
|
||||
Py_DECREF(config);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue