discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] set_max_output_buffer_size


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.
Aerospace Corp., Sr. Eng. Spec.
Tel: 310.336.1274
________________________

Attachment: gnuradio_buffer.patch
Description: gnuradio_buffer.patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]