On Fri, Feb 8, 2008 at 12:09 PM, Hans Søndergaard (HSO) <[EMAIL PROTECTED]>
wrote:
>
>
>
>
> Thank you for an excellent answer Jan 23, 2008, about using periodic
> rt_tasks.
>
>
>
> Next I want to program sporadic/aperiodic tasks.
>
>
>
> My idea is to call rt_task_notify (& task, signal) when an event occurs.
>
>
>
> The task has a run-method doing something like:
>
>
>
> for(;;)
>
> {
>
> rt_task_catch (&doSomeWork); // catch the event and call doSomeWork, -
> and then wait for next event
>
> }
>
>
>
> But I can not get it work.
I am afraid the rt_task_notify/rt_task_catch mechanism is not
available in user-space.
You will have to use events (rt_event_wait/rt_event_signal) or
condition variables (rt_cond_wait/rt_cond_signal).
--
Gilles Chanteperdrix
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help