On Wed, 31 Oct 2007, micke wrote: > hi, in lunix I can do following: > > tid = syscall(SYS_gettid); > > to get the thread id of the current thread. > > How do I do this in solaris?
The same way you _should_ do it in Linux, and that is to use pthread_self() for the purpose ;-) FrankH. > > > This message posted from opensolaris.org > _______________________________________________ > opensolaris-code mailing list > [email protected] > http://mail.opensolaris.org/mailman/listinfo/opensolaris-code > ------------------------------------------------------------------------------ No good can come from selling your freedom, not for all the gold in the world, for the value of this heavenly gift far exceeds that of any fortune on earth. ------------------------------------------------------------------------------ _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
