From: Jan Kiszka <jan.kiszka@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [RFC][PATCH] Factor out xnsynch_acquire/release
Date: Sun, 21 Sep 2008 12:24:27 +0200 [thread overview]
Message-ID: <48D620DB.2070101@domain.hid> (raw)
In-Reply-To: <48CE7BD7.6060504@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1338 bytes --]
Jan Kiszka wrote:
> Slowly moving on toward generic fast mutex support for Xenomai, this
> patch is a proposal to address the increasing divergence of
> owner-tracking vs. owner-less xnsynch objects.
>
> The services dealing with the former will likely include a new, lockless
> prologues for the mutex fastpath. At the the same time, this additional
> code should not disturb too much in those cases where we do not track
> ownership (condition variables, events, semaphores etc.). Moreover, I
> noticed that some of the existing code assumes XNSYNCH_NOPIP means no
> ownership, which is surely not true. The already visible effect is that
> lock stealing is needlessly restricted to XNSYNCH_PIP.
>
> Going through the API, I dug out three diverging services and replaced
> them with two new ones:
>
> Owner-less xnsynch objects:
> - xnsynch_sleep_on
> - xnsynch_wakeup_one_sleeper
> - xnsynch_wakeup_this_sleeper
>
> Owner-tracking xnsynch objects:
> - xnsynch_acquire
> - xnsynch_release
>
> The latter type of objects are marked with the new flag XNSYNCH_OWNER,
> used only for debugging and code documentation purposes in the current
> implementation.
Any comments on this? I plan to resume the work on fast xnsynch once
this building block is clarified (or replaced by an alternative).
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
next prev parent reply other threads:[~2008-09-21 10:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-15 15:14 [Xenomai-core] [RFC][PATCH] Factor out xnsynch_acquire/release Jan Kiszka
2008-09-15 17:10 ` Jan Kiszka
2008-09-16 17:15 ` Philippe Gerum
2008-09-21 10:24 ` Jan Kiszka [this message]
2008-09-21 17:48 ` Gilles Chanteperdrix
2008-09-21 18:07 ` Jan Kiszka
2008-09-21 19:03 ` Gilles Chanteperdrix
2008-09-22 8:09 ` Jan Kiszka
2008-09-22 8:18 ` Gilles Chanteperdrix
2008-09-22 8:57 ` Jan Kiszka
2008-09-22 18:41 ` Gilles Chanteperdrix
2008-09-23 8:44 ` Jan Kiszka
2008-09-23 8:45 ` Gilles Chanteperdrix
2008-09-23 9:01 ` Jan Kiszka
2008-09-22 8:19 ` Philippe Gerum
2008-09-23 14:59 ` Jan Kiszka
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=48D620DB.2070101@domain.hid \
--to=jan.kiszka@domain.hid \
--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.