On Wed, 2010-12-22 at 15:17 +0100, Philippe Gerum wrote: > On Wed, 2010-12-22 at 15:14 +0100, Kolja Waschk wrote: > > > Your Makefile may have an issue. Do you happen to link with > > > libpthread_rt.so in addition to libnative.so? > > > > Yes, because most of the code uses the native API, but one part uses > > pthread_* calls.. ? > > > > Ok, you should have a look at this commit then, and introduce > wrap-link.sh in the link rules for your app: > http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=8f5330c9da75f5fdedee5b7cf60e525ee5845300 >
In short, it is Xenomai's pthread_cond_wait() version which returns EPERM to the linuxthread manager, because it does not want to be called from a non-Xenomai thread. Obviously, the manager thread should not invoke any Xenomai service in the first place, and this is where the link magic bites. > > > Kolja > > > -- Philippe. _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
