Re: [Xenomai-help] Communication between RT and non-RT thread

2011-07-07 Thread Richard Cochran
On Wed, Jul 06, 2011 at 02:19:47PM +0200, Gilles Chanteperdrix wrote: On 07/06/2011 01:42 PM, Andrey Nechypurenko wrote: What makes me worry here is the IPC abbreviation - I have just one process with multiple threads. So would not real IPC mechanism be the overkill in this scenario? Or

Re: [Xenomai-help] Communication between RT and non-RT thread

2011-07-07 Thread Anders Blomdell
On 07/07/2011 09:31 AM, Richard Cochran wrote: On Wed, Jul 06, 2011 at 02:19:47PM +0200, Gilles Chanteperdrix wrote: On 07/06/2011 01:42 PM, Andrey Nechypurenko wrote: What makes me worry here is the IPC abbreviation - I have just one process with multiple threads. So would not real IPC

Re: [Xenomai-help] Communication between RT and non-RT thread

2011-07-07 Thread Andrey Nechypurenko
Thank you very much guys for suggestions! The idea with simple ring buffer looks promising and I will try to implement it this way. Once again thank you! Andrey. ___ Xenomai-help mailing list Xenomai-help@gna.org

[Xenomai-help] Communication between RT and non-RT thread

2011-07-06 Thread Andrey Nechypurenko
Hi Folks, In my application I have Xenomai thread which collects and process sensor data. In addition, I have non-RT thread which sends sensor data over the network for visualization (with much lower time resolution, picking let's say every 100th sample). Xenomai thread is the only one which

Re: [Xenomai-help] Communication between RT and non-RT thread

2011-07-06 Thread Gilles Chanteperdrix
On 07/06/2011 11:25 AM, Andrey Nechypurenko wrote: Hi Folks, In my application I have Xenomai thread which collects and process sensor data. In addition, I have non-RT thread which sends sensor data over the network for visualization (with much lower time resolution, picking let's say every

Re: [Xenomai-help] Communication between RT and non-RT thread

2011-07-06 Thread Andrey Nechypurenko
Thanks Gilles for the quick response! You can use mutexes with priority inheritance to avoid this issue. But Xenomai has ready made queues for rt/non-rt communication, the rtipcs: http://www.xenomai.org/documentation/xenomai-head/html/api/group__rtipc.html What makes me worry here is the IPC

Re: [Xenomai-help] Communication between RT and non-RT thread

2011-07-06 Thread Gilles Chanteperdrix
On 07/06/2011 01:42 PM, Andrey Nechypurenko wrote: Thanks Gilles for the quick response! You can use mutexes with priority inheritance to avoid this issue. But Xenomai has ready made queues for rt/non-rt communication, the rtipcs: