diff options
author | Victor Stinner <vstinner@python.org> | 2020-03-25 20:23:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-25 20:23:53 (GMT) |
commit | 5c3cda0d1a850a1a9b43892f48376b8876bd5863 (patch) | |
tree | 723a2cb38dfec21de9cabe70d2bc952986788f5f /Include | |
parent | 0e427c6d159e86f17270770cd8dc37372e3c4004 (diff) | |
download | cpython-5c3cda0d1a850a1a9b43892f48376b8876bd5863.zip cpython-5c3cda0d1a850a1a9b43892f48376b8876bd5863.tar.gz cpython-5c3cda0d1a850a1a9b43892f48376b8876bd5863.tar.bz2 |
bpo-39947: Add PyThreadState_GetID() function (GH-19163)
Add PyThreadState_GetID() function: get the unique identifier of a
Python thread state.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pystate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pystate.h b/Include/pystate.h index 5866fef..c46d3fe 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -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 |