Hello all, Currently, the FifoUtil object allows for creation of a pipe using the pipe() call, and then subsequent reads() and writes() allow for inter-thread communication - I would like to know if there is a convenient function call to purge the contents of an existing pipe? E.g, a single thread has perhaps written x bytes of data into a pipe, and i would like to purge (or clear the contents) of the pipe so that subsequent reads from that pipe will block since no data exists.
Do you know if this is currently possible? The long winded method would be to do subsequent O_NONBLOCK reads on the pipe till you get an -EAGAIN error (no more data left), but i have upwards of 40 elements in a single pipe Thanks, Jerry
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
