From: Philippe Gerum <rpm@xenomai.org>
To: jesper.christensen@cobham.com
Cc: Jesper Christensen <jbc@thrane.com>, xenomai@xenomai.org
Subject: Re: [Xenomai] mutex and timers
Date: Thu, 29 Nov 2012 11:56:04 +0100 [thread overview]
Message-ID: <50B73F44.9080900@xenomai.org> (raw)
In-Reply-To: <50B73EA7.3070501@thrane.com>
On 11/29/2012 11:53 AM, Jesper Christensen wrote:
> Hello
>
> I was wondering if (and i have a feeling i already know the answer) it
> is a no-go to call rtdm_mutex_lock from a rtdm timer handler? I've just
> discovered that is what we do, and i have a feeling it is causing
> trouble (most of the time it seems to work however).
>
no go indeed. As soon as the mutex is contented, an attempt is made to
put the caller to sleep, which can't be done over an IRQ context. So the
situation is essentially, a mess.
--
Philippe.
next prev parent reply other threads:[~2012-11-29 10:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-29 10:53 [Xenomai] mutex and timers Jesper Christensen
2012-11-29 10:56 ` Philippe Gerum [this message]
2012-11-29 10:57 ` Jesper Christensen
2012-11-29 10:59 ` Philippe Gerum
2012-11-29 11:07 ` Jesper Christensen
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=50B73F44.9080900@xenomai.org \
--to=rpm@xenomai.org \
--cc=jbc@thrane.com \
--cc=jesper.christensen@cobham.com \
--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.