diff options
Diffstat (limited to 'gnuradio-runtime/lib/block_detail.cc')
-rw-r--r-- | gnuradio-runtime/lib/block_detail.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/block_detail.cc b/gnuradio-runtime/lib/block_detail.cc index 8d149be848..0be22bf5b7 100644 --- a/gnuradio-runtime/lib/block_detail.cc +++ b/gnuradio-runtime/lib/block_detail.cc @@ -240,6 +240,22 @@ namespace gr { } } + int + block_detail::thread_priority(){ + if(threaded) { + return gr::thread::thread_priority(thread); + } + return -1; + } + + int + block_detail::set_thread_priority(int priority){ + if(threaded) { + return gr::thread::set_thread_priority(thread,priority); + } + return -1; + } + void block_detail::start_perf_counters() { |