* [Xenomai-help] migrating task code from rtai
@ 2007-12-18 7:45 Stéphane ANCELOT
2007-12-18 8:42 ` Gilles Chanteperdrix
0 siblings, 1 reply; 2+ messages in thread
From: Stéphane ANCELOT @ 2007-12-18 7:45 UTC (permalink / raw)
To: xenomai-help
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 .
Best Regards
Steph
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-help] migrating task code from rtai
2007-12-18 7:45 [Xenomai-help] migrating task code from rtai Stéphane ANCELOT
@ 2007-12-18 8:42 ` Gilles Chanteperdrix
0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2007-12-18 8:42 UTC (permalink / raw)
To: Stéphane ANCELOT; +Cc: xenomai-help
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-18 8:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-18 7:45 [Xenomai-help] migrating task code from rtai Stéphane ANCELOT
2007-12-18 8:42 ` Gilles Chanteperdrix
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.