All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] First thoughts on fast xnsynch
@ 2008-09-04  7:13 Jan Kiszka
  2008-09-04  7:17 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2008-09-04  7:13 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai-core

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

Hi Gilles,

I spent a few brain cycles on the design of a generic fast-lock via
xnsynch. The first thing was defining the lock word and going through
its use cases.

You suggested to realize lock stealing directly in user space, but I
don't see now how this should work reasonably. Our problem is that we
would have to atomically check for the woken state AND compare the
current priority against the owner ones. Imaginable only if we replicate
the priorities into the lock word - but this makes things at least
horribly complicated (e.g. when priorities change). So I think we have
to drop this goal. Or what did you have in mind?

Jan


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

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

end of thread, other threads:[~2008-09-04  7:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-04  7:13 [Xenomai-core] First thoughts on fast xnsynch Jan Kiszka
2008-09-04  7:17 ` Gilles Chanteperdrix

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.