> In linux if I use pthread_self() I get a pthread_t
> struct, that I have no access to anything in?? I
> don't know how to pick out the thread id from
> pthread_t in linux, that why I use the syscall. If
> anyone knows how, please let me know.
> 
> In solaris it's "easier" pthread_t is a kthread_t and
> I can pick out the specific tid(lwpid), I guess I
> should use priocntl to change the parameters for a
> thread. looking in to that now.
> 
> thanks.


Still sounds like you're using a whole bunch of platform-specific stuff
and just trying to find equivalents for more platforms, rather than
using the pthread_* stuff everywhere.

Even if pthread_* won't do everything you need (but I wonder about that,
since it's reasonably extensive), it might be simpler
to use it everywhere possible, and only have platform-specific stuff
to do what it doesn't take care of.
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to