<Is it possible to use thread_info() or pthread_ma...
# community-feeds
r
Is it possible to use thread_info() or pthread_mach_thread_np() to know if a thread has been terminated on OSX? I am trying to implement something similar to pthread_tryjoin_np on OSX. For this purpose I need a reliable way to find if a pthreat_t has been terminated. I found the mach_port API and I am wondering if I can use thread_info() for this usecase. https://www.gnu.org/software/hurd/gnumach-doc/Thread-Information.html #include #include #include bool info_available(mach_port_t thread)...