As you used rt_task_delete / rt_task_init, did you use both functions with
the same task descriptor t ?
For example : RT_TASK t ;
..
rt_task_init(&t,...)
..
rt_task_delete(&t,...)
rt_task_init(&t,...)
..
or do you use a second task descriptor t2 at the second
rt_task_init(&t2,...) ?
If i use the first mode (ie with the same task descriptor t), it runs but it
doesn't restart at the beginning of this task.
THX.
-----Message d'origine-----
De: Phil Wilshire [mailto:[EMAIL PROTECTED]]
Date: mercredi 5 janvier 2000 19:11
À: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet: Re: [rtl] How could i reinit a rt task at its beginning ?
[EMAIL PROTECTED] wrote:
>
> "Menival, Christophe" <[EMAIL PROTECTED]> wrote:
>
> > I'd like to kill an occurrence of a periodic rt task and reinit
it for its
> > next period. But, the next occurrence of the rt periodic task
starts at the
> > point where it was killed (stopped) and i would like to make it
start at the
> > beginning of its function.
>
> I bumped into this recently. My 'task' is essentially a one-shot
that
> gets called at precise, mostly non-repeating, intervals. I need
to
> start and stop it, but it doesn't make sense to restart it
anywhere
> except the beginning. At first I used rt_task_delete/rt_task_init
> every time, which worked, but seems clumsy. Then I found I could
code
> the task to return (ending it, wrt the rt scheduler), then restart
it
> with rt_task_wakeup.
>
> I suppose this is obvious to the old salts around here, but it
took me
> a while to puzzle it out.
Nice one
...really nice one..
Long live Open Source.
Phil Wilshire
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail
[EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/