diff options
author | Tim O'Shea <tim.oshea753@gmail.com> | 2013-06-05 10:52:22 -0400 |
---|---|---|
committer | Tim O'Shea <tim.oshea753@gmail.com> | 2013-06-05 14:20:37 -0400 |
commit | 2df6f769ce2cd026d92778ded780941ac3a0da0c (patch) | |
tree | 6ae067e8e75fdd65f97755690cd483fe592304ba /gnuradio-runtime/lib/tpb_thread_body.cc | |
parent | 9c154832f1db9a7cc0a8ebe33e8798541335caf1 (diff) |
runtime: adding thread priority methods to gr::block
Diffstat (limited to 'gnuradio-runtime/lib/tpb_thread_body.cc')
-rw-r--r-- | gnuradio-runtime/lib/tpb_thread_body.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/tpb_thread_body.cc b/gnuradio-runtime/lib/tpb_thread_body.cc index ceb94fbb2a..c49594c931 100644 --- a/gnuradio-runtime/lib/tpb_thread_body.cc +++ b/gnuradio-runtime/lib/tpb_thread_body.cc @@ -52,6 +52,11 @@ namespace gr { gr::thread::thread_bind_to_processor(d->thread, block->processor_affinity()); } + // Set thread priority if it was set before fg was started + if(block->thread_priority() > 0) { + gr::thread::set_thread_priority(d->thread, block->thread_priority()); + } + while(1) { boost::this_thread::interruption_point(); |