POSIX's pthread_t is defined in sys/types.h and is an opaque type that identifies a thread.
On glibc it is a c_ulong, on musl it is a *mut __thread_handle, etc.
However, libstd's pthread_t is a type alias to libc::c_ulong, which is incorrect on musl. AFAICT, fixing this would be a backwards incompatible change.
POSIX's
pthread_tis defined insys/types.hand is an opaque type that identifies a thread.On
glibcit is ac_ulong, onmuslit is a*mut __thread_handle, etc.However, libstd's
pthread_tis a type alias tolibc::c_ulong, which is incorrect on musl. AFAICT, fixing this would be a backwards incompatible change.