From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] Fast mutexes vs. automatic mode switch
Date: Mon, 13 Oct 2008 14:17:19 +0200 [thread overview]
Message-ID: <48F33C4F.4020001@domain.hid> (raw)
In-Reply-To: <48F33AEC.9080608@domain.hid>
Jan Kiszka wrote:
> As we are already fighting hard to avoid new explicit mode-switch use
> cases, rather get rid of old ones, I thought it would be better to keep
> existing semantic across the fast mutex changes.
>
> Regarding those shared maps: they are per process, aren't they? But here
> we need per thread memory. I'm currently thinking of a memory piece that
> the caller of xeno_set_current provides (or some service that is called
> together with the latter one, or some extended services - to keep APIs
> clean). Then, on mode switches, the kernel will carefully
> (xn_copy_to_user) update it.
We can allocate a piece of memory on the shared heap, and attach it to a
thread using a pthread_key.
--
Gilles.
next prev parent reply other threads:[~2008-10-13 12:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-13 11:47 [Xenomai-core] Fast mutexes vs. automatic mode switch Jan Kiszka
2008-10-13 11:59 ` Gilles Chanteperdrix
2008-10-13 12:11 ` Jan Kiszka
2008-10-13 12:17 ` Gilles Chanteperdrix [this message]
2008-10-13 14:25 ` Jan Kiszka
2008-10-13 18:08 ` 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=48F33C4F.4020001@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=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.