M. Koehrer wrote: > Hi all, > > I am about to switch an realtime application from Xenomai to the > RT_PREEMPTION patch. > Everything works really smooth, however I have one question. > With my Xenomai application I use the message queue which combine transfer > (including queuing) > of data with activation of the thread. > In my Xenomai application I use this feature quite frequently. Now, I am not > sure how to do an equivalent > with the RT_PREEMPT patch. > (see > http://www.xenomai.org/documentation/xenomai-2.4/html/api/group__native__queue.html) > Of course I could use condition variables and a struct or array to hold the > data I want to pass with the activation > of a thread. However, using this approach I do not have the queuing (which is > some extra effort I could spent...). > Another idea I have: I could use sockets which realize the queuing but the > overhead is too high. > > Is there any suitable way to implement a message queue like approach using > RT_PREEMPT patch? > I am running x86 (Dual/Quad Cores). > > Thanks for all answers on this question.
What you are looking for is an equivalence between native skin services and posix services, which you will find here: http://www.xenomai.org/documentation/xenomai-2.4/html/api/group__posix.html see the table at the bottom of the page. Of course these are equivalent between Xenomai native and posix skins, but it applies to preempt_rt too, since it uses the posix api. > > Regards > > Mathias > > > -- Gilles Chanteperdrix, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users