On Mon, Apr 7, 2008 at 3:08 PM, Thomas Wiedemann
> "Gilles Chanteperdrix" <[EMAIL PROTECTED]> schrieb am
>  07.04.2008 14:47:05:
>  > Forget it, it will not work. What you are trying to do can not work as
>  > long as Xenomai and Linux are two distinct schedulers: Xenomai tasks
>  > running in secondary mode are suspended from Xenomai scheduler point
>  > of view, so, you can yield as much as you want, this will never let
>  > them run.
>  But the behaviour is still the same, when i put a
>          pthread_set_mode_np(PTHREAD_PRIMARY, 0);
>  in the thread function. Thereafter, only the xenomai-scheduler is
>  responsible for the threads running in primary mode, or am i completely
>  wrong?

The thread remains in primary mode as long as you do not call a
secondary mode service, such as pthread_barrier_wait or fprintf.


Xenomai-core mailing list

Reply via email to