PyThreadState.thread_id

Thread id where this tstate was created

struct PyThreadState
C_long thread_id;

Meta