Paul Winder <[EMAIL PROTECTED]> wrote:

> I might be missing something here but....

Well, none of the answers have been correct enough.

pthread_t is a thread ID but POSIX does not mention the underlying data.

If you like to write portable code, you ned to be aware of this fact. 

IIRC, pthread_t is:

a small number starting from 1...       Solaris

a pid                                   Linux

a filedescriptor                        MS-WIN (well, there are no POSIX 
                                        threads but it makes sense to mention 
                                        it)

a pointer                               several other OS.

If you like to be portable, read the POSIX definitions from opengroup.org and
do not make any asumption not mentioned there.

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to