All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] First thoughts on fast xnsynch
Date: Thu, 04 Sep 2008 09:13:42 +0200	[thread overview]
Message-ID: <48BF8AA6.6090702@domain.hid> (raw)

[-- 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 --]

             reply	other threads:[~2008-09-04  7:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-04  7:13 Jan Kiszka [this message]
2008-09-04  7:17 ` [Xenomai-core] First thoughts on fast xnsynch Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48BF8AA6.6090702@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.