All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] __thread instead of pthread_get/setspecific
@ 2008-10-13 21:55 Jan Kiszka
  2008-10-14  8:28 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 19+ messages in thread
From: Jan Kiszka @ 2008-10-13 21:55 UTC (permalink / raw)
  To: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

Hi,

looking into the "xeno_in_primary_mode" thing I wondered how to make the
thread state quickly retrievable. Going via pthread_getspecific as we do
for xeno_get_current appears logical - but not optimal. Though
getspecific is optimized for speed, it remains a function call, a few
sanity checks, and only finally a TLS variable access. That could be
achieved in a much lighter way by using a __thread variable.

But can we assume that all target we support also support the __thread
storage class? TLS is surely mandatory now: I assume pthread_getspecific
would become non-RT safe without it, right? Is there anything we
can/must check for during configure to verify __thread support?

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2008-10-14 14:30 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-13 21:55 [Xenomai-core] __thread instead of pthread_get/setspecific Jan Kiszka
2008-10-14  8:28 ` Gilles Chanteperdrix
2008-10-14  9:08   ` Jan Kiszka
2008-10-14  9:15     ` Gilles Chanteperdrix
2008-10-14  9:26       ` Jan Kiszka
2008-10-14  9:41         ` Gilles Chanteperdrix
2008-10-14 10:25           ` Jan Kiszka
2008-10-14 12:18             ` Gilles Chanteperdrix
2008-10-14 12:49               ` Jan Kiszka
2008-10-14 12:53                 ` Gilles Chanteperdrix
2008-10-14 12:59                   ` Jan Kiszka
2008-10-14 13:02                     ` Gilles Chanteperdrix
2008-10-14 13:09                       ` Jan Kiszka
2008-10-14 13:22                         ` Gilles Chanteperdrix
2008-10-14 13:25                         ` Gilles Chanteperdrix
2008-10-14 13:44                           ` Jan Kiszka
2008-10-14 14:30                             ` Philippe Gerum
2008-10-14  9:58         ` Gilles Chanteperdrix
2008-10-14 10:26           ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.