On Thursday 07 June 2007 3:14 pm, Philippe Gerum wrote: > On Thu, 2007-06-07 at 14:46 -0500, NZG wrote: > > > Yes, clearly. > > > > Ah, that in conjunction with the > > "can't use message pipe - Cannot allocate memory" > > thread resolves my issues then. > > > > My assumption was that data would exist in the pipe after the write until > > the pipe was destroyed, irrespective of the "openness" of the NRT side. > > Nope, as a general rule, the read-side of an endpoint is flushed when > the other end closes. Then, you have also to take into account the > priority of the thread waiting on the endpoint wrt the priority of the > one which closes the other side. So, if I wanted to use standard NRT calls in user space to wait for data to actually be delivered through the rt pipe before closing the fd, what would be the best method? Select? Or is there a simple call for this I'm missing?
thx, NZG _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
