Forum: GNU Radio buffering in gr_file

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Marcus D. Leech (Guest)
on 2009-02-17 17:21
(Received via mailing list)
Is there a way to turn off buffering on gr_file?  (Short of adding an
fflush in the C++ code that implements the work function?).

I have an app that writes a single floating-point number to a FIFO at a
rate of 2Hz, and it doesn't make it to the
  outside world until the STDIO buffer gets filled.   *I* think this is
a bug, since it violates the reasonable expectation
  of the quasi-realtime nature of Gnu Radio.

Any opinions?

--
Marcus L.
Principal Investigator, Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org
Eric B. (Guest)
on 2009-02-17 21:11
(Received via mailing list)
On Tue, Feb 17, 2009 at 10:20:31AM -0500, Marcus D. Leech wrote:
>
If you use gr.file_descriptor_{source,sink} there won't be any
buffering.

Eric
This topic is locked and can not be replied to.