mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
bpo-43879: Add native_thread_id field to PyThreadState (GH-25458)
This commit is contained in:
parent
4f725261c6
commit
90a6c07cb2
4 changed files with 17 additions and 0 deletions
|
|
@ -113,6 +113,12 @@ struct _ts {
|
|||
PyObject *async_exc; /* Asynchronous exception to raise */
|
||||
unsigned long thread_id; /* Thread id where this tstate was created */
|
||||
|
||||
/* Native thread id where this tstate was created. This will be 0 except on
|
||||
* those platforms that have the notion of native thread id, for which the
|
||||
* macro PY_HAVE_THREAD_NATIVE_ID is then defined.
|
||||
*/
|
||||
unsigned long native_thread_id;
|
||||
|
||||
int trash_delete_nesting;
|
||||
PyObject *trash_delete_later;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue