diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-05-03 03:40:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-03 03:40:00 (GMT) |
commit | 292076a9aa29aba1023340a0d24252a7b27a454e (patch) | |
tree | 3268355a188506819fe9399401b65d55587f9e8e /Include | |
parent | de64e7561680fdc5358001e9488091e75d4174a3 (diff) | |
download | cpython-292076a9aa29aba1023340a0d24252a7b27a454e.zip cpython-292076a9aa29aba1023340a0d24252a7b27a454e.tar.gz cpython-292076a9aa29aba1023340a0d24252a7b27a454e.tar.bz2 |
gh-104109: Expose Py_NewInterpreterFromConfig() in the Public C-API (gh-104110)
We also expose PyInterpreterConfig. This is part of the PEP 684 (per-interpreter GIL) implementation. We will add docs as soon as we can.
FYI, I'm adding the new config field for per-interpreter GIL in gh-99114.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/initconfig.h | 2 | ||||
-rw-r--r-- | Include/cpython/pylifecycle.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Include/cpython/initconfig.h b/Include/cpython/initconfig.h index 79c1023..9c1783d 100644 --- a/Include/cpython/initconfig.h +++ b/Include/cpython/initconfig.h @@ -252,7 +252,7 @@ typedef struct { int allow_threads; int allow_daemon_threads; int check_multi_interp_extensions; -} _PyInterpreterConfig; +} PyInterpreterConfig; #define _PyInterpreterConfig_INIT \ { \ diff --git a/Include/cpython/pylifecycle.h b/Include/cpython/pylifecycle.h index 79d5571..08569ee 100644 --- a/Include/cpython/pylifecycle.h +++ b/Include/cpython/pylifecycle.h @@ -62,9 +62,9 @@ PyAPI_FUNC(int) _Py_CoerceLegacyLocale(int warn); PyAPI_FUNC(int) _Py_LegacyLocaleDetected(int warn); PyAPI_FUNC(char *) _Py_SetLocaleFromEnv(int category); -PyAPI_FUNC(PyStatus) _Py_NewInterpreterFromConfig( +PyAPI_FUNC(PyStatus) Py_NewInterpreterFromConfig( PyThreadState **tstate_p, - const _PyInterpreterConfig *config); + const PyInterpreterConfig *config); typedef void (*atexit_datacallbackfunc)(void *); PyAPI_FUNC(int) _Py_AtExit( |