summaryrefslogtreecommitdiff
path: root/gr-zeromq/grc/zeromq_req_source.xml
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2016-01-27 12:58:50 +0100
committerJohnathan Corgan <johnathan@corganlabs.com>2016-01-27 10:31:26 -0800
commit6e482c5bb6bf49f000f6b8d35a1ca84127e38c46 (patch)
treeee9e4e3323da08dfabe91257229b970a38dff066 /gr-zeromq/grc/zeromq_req_source.xml
parent393624c072417e0b8a74480979eeccdfb8278e77 (diff)
gr-zeromq: Big rework for performance and correctness
- Use class hierarchy trying to maximize code re-use. - Dont' drop samples on receive if the output buffer doesn't have enough space. - Don't drop tags on receive by putting tags in the future. - Better metadata creation/parsing avoiding copying lots data. - Always do as much work as possible in a single call to work() to avoid scheduler overhead as long as possible. - Allow setting the high watermark to avoid older version of zeromq's default of buffering infinite messages and causing a paging thrash to/from disk when the flow graph can't keep up. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'gr-zeromq/grc/zeromq_req_source.xml')
-rw-r--r--gr-zeromq/grc/zeromq_req_source.xml20
1 files changed, 18 insertions, 2 deletions
diff --git a/gr-zeromq/grc/zeromq_req_source.xml b/gr-zeromq/grc/zeromq_req_source.xml
index 050718c1bf..2ef224399d 100644
--- a/gr-zeromq/grc/zeromq_req_source.xml
+++ b/gr-zeromq/grc/zeromq_req_source.xml
@@ -4,7 +4,7 @@
<key>zeromq_req_source</key>
<category>ZeroMQ Interfaces</category>
<import>from gnuradio import zeromq</import>
- <make>zeromq.req_source($type.itemsize, $vlen, $address, $timeout, $pass_tags)</make>
+ <make>zeromq.req_source($type.itemsize, $vlen, $address, $timeout, $pass_tags, $hwm)</make>
<param>
<name>IO Type</name>
@@ -61,7 +61,23 @@
<name>Pass Tags</name>
<key>pass_tags</key>
<value>False</value>
- <type>bool</type>
+ <type>enum</type>
+ <option>
+ <name>Yes</name>
+ <key>True</key>
+ </option>
+ <option>
+ <name>No</name>
+ <key>False</key>
+ </option>
+ </param>
+
+ <param>
+ <name>High Watermark</name>
+ <key>hwm</key>
+ <value>-1</value>
+ <type>int</type>
+ <hide>#if $hwm() == -1 then 'part' else 'none'#</hide>
</param>
<source>