All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Simon Leonard <sleonard@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Calling rt_task_shadow from a POSIX thread with --enable-dlopen-skins
Date: Mon, 25 Apr 2011 08:47:54 +0200	[thread overview]
Message-ID: <4DB5191A.9020801@domain.hid> (raw)
In-Reply-To: <4DB4DA61.9070906@domain.hid>

Simon Leonard wrote:
> I have code based on the POSIX skin. For a (python related) reason, I 
> had to re-compile Xenomai with --enable-dlopen-skins. The result is that 
> unless I call rt_task_shadow, my threads don't work like they used to.

Mmmm. Normally, without --enable-dlopen-skins, only the main thread is
automatically made real-time.

> 
> Although I *think* my code works by mixing rt_task_shadow with the POSIX 
> skin I'm not convinced that it is legit. Can anybody advise?

It works, but, there are services in the POSIX skin which will only work
if the thread is a posix skin thread, not if it is a native skin thread.
Anyway, you can use pthread_setschedparam instead of rt_task_shadow.


-- 
                                                                Gilles.


      reply	other threads:[~2011-04-25  6:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-25  2:20 [Xenomai-help] Calling rt_task_shadow from a POSIX thread with --enable-dlopen-skins Simon Leonard
2011-04-25  6:47 ` 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=4DB5191A.9020801@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=sleonard@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.