All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Mathew Benson <mathew.benson@gmail.com>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Debugger and secondary mode question
Date: Wed, 4 Mar 2015 22:48:09 +0100	[thread overview]
Message-ID: <20150304214809.GH30672@hermes.click-hack.org> (raw)
In-Reply-To: <666349AB-944C-4C85-83DE-C37BB9231AB1@gmail.com>

On Wed, Mar 04, 2015 at 03:45:09PM -0600, Mathew Benson wrote:
> I'll test it again shortly.  
> 
> What happens when a thread depletes a semaphore or takes a mutex, then transitions to secondary mode?  Does the semaphore or mutex automatically get given back or does the thread keep it for when it transitions back to primary mode?

It keeps it, but this is very bad, and you should normally get a
warning in your kernel console. You can get a SIGDEBUG too, if you
enable the notification for the thread.

Of course, when debugging, timing issues are not so important, so
this is not an issue.

-- 
					    Gilles.


  reply	other threads:[~2015-03-04 21:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-04 17:33 [Xenomai] Debugger and secondary mode question Mathew Benson
2015-03-04 17:42 ` Gilles Chanteperdrix
2015-03-04 21:45   ` Mathew Benson
2015-03-04 21:48     ` Gilles Chanteperdrix [this message]
2015-03-04 21:56     ` 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=20150304214809.GH30672@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=mathew.benson@gmail.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.