micke <[EMAIL PROTECTED]> 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?
Do never try to use platform specific code if you like to be portable. Start reading the POSIX dosuments e.g. from: http://www.opengroup.org/onlinepubs/009695399/functions/pthread_self.html and implement code that is only based on things that POSIX grants. Note: do not make any asumption on internal types from opaque data types like "pthread_t". 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
