Reading thread state

Peter Skvarka <[email protected]> Mon, 21 Apr 2025 09:52:34 +0200
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
Hello,

in main application thread I have valid pthread_t of another thread.
Does NetBSD provide any pthread...() function or another interface for 
reading thread state ? (RUNNING, DEAD, ZOMBIE)

I found way only with reading of internal __pthread_st.pt_state but I'd 
like to avoid this way.

Peter