Philippe Gerum wrote: > Use pthread_getspecific() for obtaining back a TLS data previously > defined by pthread_setspecific(), indexed on a TLS key obtained from > pthread_key_create(). Warning: AFAICT, only pthread_getspecific() > refrain from performing any kind of Linux syscall (in the current > NPTL and older LinuxThreads implementation, that is), thus won't > migrate your RT task to secondary mode when called. The two others > could call vanilla kernel services, so you must use them during > non-critical preliminary init steps of your task.
Does this mean that if you use pthread_getspecific() inside a user-space application you will not switch to secondary mode ? I was just abandoning using TLS because I could not imagine how the NPTL's functionality can be done without a system call. Is this behaviour something one can rely on in the future ? Is there something similar like TLS inside the native API ? Best regards, Daniel. _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
