|
From: | Eugene Grayver |
Subject: | [Discuss-gnuradio] set_max_output_buffer_size |
Date: | Thu, 22 Dec 2016 21:20:45 +0000 |
There are a two problems with the set_max_output_buffer_size command:
1. It is not exposed in Python 2. It cannot set the buffer size smaller than the system page size (typically 4k). This is a big problem for low-rate, low-latency applications.
I cannot provide a pull request, but am attaching a patch that should fix both problems.
The idea behind fixing (2) is simple: allow the system to allocate the full 4k, but keep a local variable with the 'real' buffer size. Then, simply never report that you have more than 'real' buffer size items free.
________________________ Eugene Grayver, Ph.D. |
gnuradio_buffer.patch
Description: gnuradio_buffer.patch
[Prev in Thread] | Current Thread | [Next in Thread] |