On 4/17/19 8:58 AM, Geoff Clare wrote:
> So glibc will conform if we require that pthread_t and thrd_t are
> defined as the same type, but does anyone know of an implementation
> that has pthreads and C11/C17 threads, with pthread_t and thrd_t defined
> as different types?

Not here, Oracle Solaris 11.4 has the same type for both:

/usr/include/sys/types.h:
typedef unsigned int    uint_t;
typedef        uint_t  pthread_t;      /* = thread_t in thread.h */

/usr/include/threads.h:
typedef unsigned int thrd_t;

To see the full headers for yourself:

/usr/include/sys/types.h:
curl -s 
http://pkg.oracle.com/solaris/release/file/0/55ae99dec04f09e8fe9963d87d24ae371c8e85b9
 | gzcat | less

/usr/include/threads.h:
curl -s 
http://pkg.oracle.com/solaris/release/file/0/183228c541fb3e2b2b6c710fa46964d94ee259a8
 | gzcat | less

(For others, substitute the hash listed at the beginning of the line after 
 "file" for the given header file listed in
 
http://pkg.oracle.com/solaris/release/manifest/0/system%2Fheader@11.4%2C5.11-11.4.0.0.1.15.0%3A20180817T003001Z
 )

-- 
        -Alan Coopersmith-               alan.coopersm...@oracle.com
         Oracle Solaris Engineering - https://blogs.oracle.com/alanc

Reply via email to