In message: <[EMAIL PROTECTED]>
            Gilad Ben-Yossef <[EMAIL PROTECTED]> writes:
: > What you're supposed to do with pthreads in general is use pthread_self().
: 
: Unfortunately, AFAIK the opaque handle that pthread_self() returns is 
: not  quite meaningless outside of the process whereas what the non 
: standard gettid() returns can actually be used to identify a thread from 
: "outside" the process, like the shell.

gettid() is also non-standard.  If you want to interact with a thread,
you gotta use pthread_self() if you want your code to be portable.

Warner


Reply via email to