diff options
Diffstat (limited to 'gnuradio-runtime/lib/block.cc')
-rw-r--r-- | gnuradio-runtime/lib/block.cc | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/gnuradio-runtime/lib/block.cc b/gnuradio-runtime/lib/block.cc index 4246180d80..0165365b9e 100644 --- a/gnuradio-runtime/lib/block.cc +++ b/gnuradio-runtime/lib/block.cc @@ -50,7 +50,8 @@ namespace gr { d_tag_propagation_policy(TPP_ALL_TO_ALL), d_pc_rpc_set(false), d_max_output_buffer(std::max(output_signature->max_streams(),1), -1), - d_min_output_buffer(std::max(output_signature->max_streams(),1), -1) + d_min_output_buffer(std::max(output_signature->max_streams(),1), -1), + d_priority(-1) { global_block_registry.register_primitive(alias(), this); @@ -318,6 +319,31 @@ namespace gr { } } + int + block::active_thread_priority() + { + if(d_detail) { + return d_detail->thread_priority(); + } + return -1; + } + + int + block::thread_priority() + { + return d_priority; + } + + int + block::set_thread_priority(int priority) + { + d_priority = priority; + if(d_detail) { + return d_detail->set_thread_priority(priority); + } + return d_priority; + } + float block::pc_noutput_items() { |