How to make a good asyncrhronous comunication.

José Antonio Sánchez getaceres at gmail.com
Fri Jun 24 14:37:48 CEST 2005


By the way. In RTAI 3.1 the function rtf_create_handler did not work
with LXRT. Does it work now with RTAI 3.2?

2005/6/23, Paolo Mantegazza <mantegazza at aero.polimi.it>:
> José Antonio Sánchez wrote:
> > Thanks but my problem is not about losing data. With rt_mbx_send_if I
> > have it because for my application it's not critical to have all data
> > shown in real time, but it's easier to implement if I receive always
> > complete messages instead of parts of messages.
> > The problem here (with mailboxes and, as I can see, with tbx) is that
> > there is no way to get informed about when data is available to read,
> > so I have to poll periodically the mailbox having a separate thread
> > only to make that trivial task. Using the files facilities found in
> > most toolkits (like a socket notifier in QT) you don't need another
> > thread to make that because a function is called whenever data is
> > available.
> > I was looking for something similar with mailboxes or a way to send
> > complete messages with FIFOS (since this is the only comunication
> > method that's using files in the user space).
> >
> > Thanks for the quick response anyway, I didn't know that new
> > comunication methods existed in RTAI 3.2
> >
> 
> What you want is a select/poll like mechanism. It can be done bu all the
> solutions that came to my mind put a performance penalty to the true
> realtime usage of ipc. So I'll keep thinking about it without finding a
> solution I like.
> 
> Paolo.
> 
>




More information about the Rtai mailing list