All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jeff Weber <jwamsc@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] test if primary mode
Date: Wed, 01 Jun 2011 20:03:25 +0200	[thread overview]
Message-ID: <4DE67EED.3050602@domain.hid> (raw)
In-Reply-To: <BANLkTiny4VqoXLOZffQLzNLn3Niqbk2Gzg@domain.hid>

On 06/01/2011 06:23 PM, Jeff Weber wrote:
> What is the best call for a user space thread to learn if it is running in
> primary or secondary mode?  (I am using POSIX skin.)

If what you want to know is whether a thread switched to secondary mode
and you did not want it, you may, with pthread_set_mode_np, ask to
receive a signal when this happen.

Any other usage is frowned upon.

-- 
                                                                Gilles.


      reply	other threads:[~2011-06-01 18:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01 16:23 [Xenomai-help] test if primary mode Jeff Weber
2011-06-01 18:03 ` Gilles Chanteperdrix [this message]

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=4DE67EED.3050602@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=jwamsc@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.