ROSSIER Daniel wrote: > ..... > > I guess there is a misunderstanding of "main thread" here. The main > thread should actually not be a xenomai thread since it belongs to a > non-RT application. Patrick is actually using the Qt framework on a > PXA device which of course is not a RT-domain application. The thing > is that the Qt application should somehow retrieve some data issued > from RT-application. Currently the Qt application is starting a > Xenomai thread - by doing an extern "c" invokation from Qt - and the > data list is shared between the main (qt-)thread (non-RT) and the > Xenomai thread; that's why Patrick wanted to use a mutex. But indeed, > as far as I know, it will be not possible to do that since the > waiting queues on sync objects as mutex are managed differently > (dealing with linux threads on the one hand, with Xenomai threads on > the other hand) between the RT and non-RT domains. So the question > would be: how can data be exchanged in a safe way between a non-RT > domain and a RT-domain?
We are using Posix message queues and/or shared memory. Works for either way. Best regards, Daniel. _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
