Landau, Bracha wrote:
> I'm using Xenomai version 2.4.

Anyway, in xenomai 2.2, mutexes were pshared by default, and there was
no way to do otherwise. After hearing critics from a well-known person
involved in the preempt_rt Linux kernel development, I implemented the
pshared attribute. So, to get mutexes the old way, you have to set the
pshared attribute. Note however, that when you use the pshared
attribute, mutexes are no longer automatically destroyed upon process
deletion.

And also note that if you simply get this problem because you call
pthread_mutex_init, then fork, then use the mutexes in the child
process, you can avoid the problem by calling pthread_mutex_init in the
child process. As explained here:

http://www.xenomai.org/index.php/Porting_POSIX_applications_to_Xenomai#Mixing_fork_with_Xenomai_POSIX_skin_services.


> This e-mail is confidential, the property of NDS Ltd and intended for
> the addressee only. Any dissemination, copying or distribution of
> this message or any attachments by anyone other than the intended
> recipient is strictly prohibited.

Grrrmblmbl

-- 
                                          Gilles


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

Reply via email to