[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/

Reply via email to