> Von: Steve M. Robbins
> Gesendet: Mittwoch, 29. Oktober 2014 17:11
> ...
> To avoid running through the select/read loop once for each message, our old
> FIFO-based code opened the file in nonblocking mode and did a read into a 
> buffer
> that could hold up to 100 messages.  We generally would read 5-7 at a time,
> not 100, so this proved that the reader could keep up when reading in batches.
>
> Using this same technique with the /dev/rtpN end of a Message Pipe never reads
> more than 1 message.  I tried both blocking and non-blocking modes but got the
> same result.  So this is my main question: knowing that there are likely many
> messages in the pipe, how do I read them in a batch?

As far as I can see, read() from a Xenomai message pipe by design never returns 
more than one message at a time.
--
Regards,
Dietmar Schindler
________________________________
manroland web systems GmbH -- Managing Director: Joern Gossé
Registered Office: Augsburg -- Trade Register: AG Augsburg -- HRB-No.: 26816 -- 
VAT: DE281389840

Confidentiality note:
This eMail and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you are not the intended recipient, you are hereby notified that any use or 
dissemination of this communication is strictly prohibited. If you have 
received this eMail in error, then please delete this eMail.

! Please consider your environmental responsibility before printing this eMail !
________________________________
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to