All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jesper Christensen <jbc@thrane.com>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] mutex and timers
Date: Thu, 29 Nov 2012 11:57:57 +0100	[thread overview]
Message-ID: <50B73FB5.3080709@thrane.com> (raw)
In-Reply-To: <50B73F44.9080900@xenomai.org>

As i suspected, thank you very much.

/Jesper B. Christensen
Development Engineer
T +45 39 55 88 02
E jesper.christensen@cobham.com
Thrane & Thrane A/S - Lundtoftegaardsvej 93D
DK-2800 Kgs. Lyngby, Denmark - www.thrane.com

On 11/29/2012 11:56 AM, Philippe Gerum wrote:
> 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.
> 


  reply	other threads:[~2012-11-29 10:57 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
2012-11-29 10:57   ` Jesper Christensen [this message]
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=50B73FB5.3080709@thrane.com \
    --to=jbc@thrane.com \
    --cc=jesper.christensen@cobham.com \
    --cc=rpm@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.