All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Stéphane ANCELOT" <sancelot@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] migrating task code from rtai
Date: Tue, 18 Dec 2007 09:42:45 +0100	[thread overview]
Message-ID: <18279.34821.686364.791683@domain.hid> (raw)
In-Reply-To: <47677A8C.3060107@domain.hid>

Stéphane ANCELOT wrote:
 > Hi,
 > I have got a rtai task created as follow, it creates and deletes itself :
 > 
 > 
 > void *callbacktask(void *)
 > {
 > 
 > rt_task_init(...)
 > 
 > 
 > while (!stopped)
 > 	{
 > 	....
 > 	}
 > 
 > rt_task_delete(...)
 > 
 > }
 > 
 > what are the replacement functions I could use in xenomai to do the same
 > thing avoiding breaking lot of code?
 > 
 > Note: I can not use RTAI skins in this xeno system .

If you want to use the Xenomai native API, then you should use
rt_task_shadow and rt_task_delete.

If you want to use the posix API, then you should use
pthread_setschedparam (though pthread_create, called to create the task
would probably have already made it real-time) and pthread_exit.

Note that Xenomai comes with a documentation which you can even read
on-line.

Here for trunk:
http://www.xenomai.org/documentation/trunk/html/api/index.html
And here for version 2.4:
http://www.xenomai.org/documentation/branches/v2.4.x/html/api/index.html


-- 


					    Gilles Chanteperdrix.


      reply	other threads:[~2007-12-18  8:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-18  7:45 [Xenomai-help] migrating task code from rtai Stéphane ANCELOT
2007-12-18  8:42 ` 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=18279.34821.686364.791683@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=sancelot@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.