STINNER Victor <vstin...@python.org> added the comment:
> 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". ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35370> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com