mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-38858: Add _Py_IsMainInterpreter(tstate) (GH-17293)
This commit is contained in:
parent
db7925a1ca
commit
fff7bbfdb6
3 changed files with 11 additions and 3 deletions
|
@ -269,6 +269,8 @@ PyAPI_FUNC(void) _PyRuntime_Finalize(void);
|
|||
#define _Py_CURRENTLY_FINALIZING(runtime, tstate) \
|
||||
(runtime->finalizing == tstate)
|
||||
|
||||
PyAPI_FUNC(int) _Py_IsMainInterpreter(PyThreadState* tstate);
|
||||
|
||||
|
||||
/* Variable and macro for in-line access to current thread
|
||||
and interpreter state */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue