Mike Frysinger wrote: > > I see ! Does using TLS create fast code or will there be a library > > call done for any access to "i" ? > > i dont know of any port that implements TLS via a library call, but how each > port does TLS is highly port specific
ARM uses a function call to a kernel page, depending on the toolchain options and ARM generation. > > Is there any other way to have a unique thread ID that the thread can > > _easily_and_fast_ access ? > > there is probably always a way to hack something together, but TLS > is the only "portable" solution. TLS isn't remotely portable. Notice how we're discussing uClinux and some currently maintained uClinux targets don't have TLS :-) pthread_getspecific is much more portable. But not as fast. -- Jamie _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev