Gilles Chanteperdrix wrote:
> Markus Franke wrote:
> > OK. And if there is an overflow is there anything I can do during
> > runtime, e.g. just to overwrite the data in the queue?
>
> Why not something like:
>
> while (-ENOMEM == rt_pipe_write(pipe, buf, size, mode)) {
> RT_PIPE_MSG *msg;
> rt_pipe_receive(pipe, &msg, TM_INFINITE);
> rt_pipe_free(pipe, msgp);
> }
This will not work: pipe are a two-ways communication channel, so that
calling rt_pipe_receive returns messages that were sent from
user-space, and not the messages previously sent with rt_pipe_write. I
am afraid what you want to do is not what rt pipes were designed for.
--
Gilles Chanteperdrix.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help