Ok, so if I understand I can't use a pthread_mutex between the main thread
and a rt_task ?
If I want use pthread_mutex between another pthread and a rt_task, must the
pthred be running with SCHED_OTHER ? This value is the default value for
pthread !

Thank's

-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:[EMAIL PROTECTED] 
Envoyé : mardi, 30. octobre 2007 10:52
À : Patrick
Cc : [email protected]
Objet : Re: [Xenomai-help] TR: RT, nonRT communication

On 10/30/07, Patrick <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
>
>
> Is it possible to share a pthread_mutex between a rt task and a linux
> pthread ?

No, it is not possible

>
> My two tasks must share resources and I must protect them against
concurrent
> access.
>
> If pthread_mutex is not the correct way to do it can you tell me how to
> achieve this ?

The way to handle these border line cases is to make your linux
pthread a xenomai thread running with the SCHED_OTHER scheduling
policy. Note that the main thread already has this property.

-- 
                                               Gilles Chanteperdrix


_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to