bpo-38858: Add _Py_IsMainInterpreter(tstate) (GH-17293)

This commit is contained in:
Victor Stinner 2019-11-20 17:34:39 +01:00 committed by GitHub
parent db7925a1ca
commit fff7bbfdb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View file

@ -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 */