mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-39947: Add PyThreadState_GetID() function (GH-19163)
Add PyThreadState_GetID() function: get the unique identifier of a Python thread state.
This commit is contained in:
parent
0e427c6d15
commit
5c3cda0d1a
6 changed files with 25 additions and 2 deletions
|
@ -91,6 +91,7 @@ PyAPI_FUNC(int) PyThreadState_SetAsyncExc(unsigned long, PyObject *);
|
|||
/* New in 3.9 */
|
||||
PyAPI_FUNC(PyInterpreterState*) PyThreadState_GetInterpreter(PyThreadState *tstate);
|
||||
PyAPI_FUNC(struct _frame*) PyThreadState_GetFrame(PyThreadState *tstate);
|
||||
PyAPI_FUNC(uint64_t) PyThreadState_GetID(PyThreadState *tstate);
|
||||
#endif
|
||||
|
||||
typedef
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue