diff options
author | Bastian Bloessl <mail@bastibl.net> | 2019-07-02 10:08:38 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-09-19 16:32:36 -0500 |
commit | ac6baea81cb27cb3a434e7d038ad6ada5d583170 (patch) | |
tree | 8112b4b299a567ba9e847924454f8a05d97bb30a | |
parent | 44a6f5ddc82233730c9702888c6796874a352f07 (diff) |
grc: enable advanced parameters
cpu affinity, max/min out buf size
-rw-r--r-- | grc/core/generator/flow_graph.py.mako | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/grc/core/generator/flow_graph.py.mako b/grc/core/generator/flow_graph.py.mako index 9b2e8478c0..d229aae9e8 100644 --- a/grc/core/generator/flow_graph.py.mako +++ b/grc/core/generator/flow_graph.py.mako @@ -190,18 +190,18 @@ gr.io_signaturev(${len(io_sigs)}, ${len(io_sigs)}, [${', '.join(size_strs)}])\ % if blk_make: ${ indent(blk_make.strip('\n')) } % endif -## % if 'alias' in blk.params and blk.params['alias'].get_evaluated(): -## (self.${blk.name}).set_block_alias("${blk.params['alias'].get_evaluated()}") -## % endif -## % if 'affinity' in blk.params and blk.params['affinity'].get_evaluated(): -## (self.${blk.name}).set_processor_affinity(${blk.params['affinity'].get_evaluated()}) -## % endif -## % if len(blk.sources) > 0 and 'minoutbuf' in blk.params and int(blk.params['minoutbuf'].get_evaluated()) > 0: -## (self.${blk.name}).set_min_output_buffer(${blk.params['minoutbuf'].get_evaluated()}) -## % endif -## % if len(blk.sources) > 0 and 'maxoutbuf' in blk.params and int(blk.params['maxoutbuf'].get_evaluated()) > 0: -## (self.${blk.name}).set_max_output_buffer(${blk.params['maxoutbuf'].get_evaluated()}) -## % endif + % if 'alias' in blk.params and blk.params['alias'].get_evaluated(): + self.${blk.name}.set_block_alias("${blk.params['alias'].get_evaluated()}") + % endif + % if 'affinity' in blk.params and blk.params['affinity'].get_evaluated(): + self.${blk.name}.set_processor_affinity(${blk.params['affinity'].get_evaluated()}) + % endif + % if len(blk.sources) > 0 and 'minoutbuf' in blk.params and int(blk.params['minoutbuf'].get_evaluated()) > 0: + self.${blk.name}.set_min_output_buffer(${blk.params['minoutbuf'].get_evaluated()}) + % endif + % if len(blk.sources) > 0 and 'maxoutbuf' in blk.params and int(blk.params['maxoutbuf'].get_evaluated()) > 0: + self.${blk.name}.set_max_output_buffer(${blk.params['maxoutbuf'].get_evaluated()}) + % endif % endfor ########################################################## |