summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/tpb_thread_body.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/lib/tpb_thread_body.cc')
-rw-r--r--gnuradio-runtime/lib/tpb_thread_body.cc5
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();