This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients fabioz, vstinner
Date 2020-03-13.13:46:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584107190.2.0.458907147199.issue35370@roundup.psfhosted.org>
In-reply-to
Content
> Maybe better would be the thread id so that the tstate structure is not needed there.

PyInterpreterState.tstate_head allows to iterate on all thread states, but I'm not aware of an API to get a PyThreadState from its identifier (tstate->id).

--

See also bpo-1021318: "PyThreadState_Next not thread safe".
History
Date User Action Args
2020-03-13 13:46:30vstinnersetrecipients: + vstinner, fabioz
2020-03-13 13:46:30vstinnersetmessageid: <1584107190.2.0.458907147199.issue35370@roundup.psfhosted.org>
2020-03-13 13:46:30vstinnerlinkissue35370 messages
2020-03-13 13:46:30vstinnercreate