Windows ginput function [Was: fopen doesn't return when opening a fifo!!]

John W. Eaton jwe at bevo.che.wisc.edu
Wed Apr 2 11:46:21 CDT 2008


On  2-Apr-2008, David Bateman wrote:

| Then we need to have O_NONBLOCK set on the output pipe and use a while
| loop to probe for input.. This wait loop in Octave will however
| needlessly consume CPU cycles.. I have that version of the code as well
| if you'd prefer.

It is only in this loop while ginput is active, right?  What about
sleeping for 0.1s each time through the loop?  Would that be
acceptable?

| > What is the new argument to open_gnuplot_stream for?  In the patch you
| > sent, one possibility was to open the pipe to gnuplot with popen.
| >   
| 
| I didn't see the point of opening with popen if we were printing and the
| stream would be closed when drawnow exited.

OK.

jwe


More information about the Bug-octave mailing list