diff options
author | Balint Seeber <balint@ettus.com> | 2014-04-04 09:30:47 -0700 |
---|---|---|
committer | Balint Seeber <balint@ettus.com> | 2014-04-04 09:42:30 -0700 |
commit | 12a63ecea7b7f6f5c6fe5e3d9c15a50fb5737ec6 (patch) | |
tree | 560d62c2a08396c366656e2b3ff6441f7be834aa /gnuradio-runtime/lib/tpb_thread_body.cc | |
parent | f5dd2ac039e50f1a2655070813843524acf72f33 (diff) |
runtime: added ability to name threads, TPB scheduler automatically names each block's thread
Diffstat (limited to 'gnuradio-runtime/lib/tpb_thread_body.cc')
-rw-r--r-- | gnuradio-runtime/lib/tpb_thread_body.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/tpb_thread_body.cc b/gnuradio-runtime/lib/tpb_thread_body.cc index 7cdee6a097..79abd0e61d 100644 --- a/gnuradio-runtime/lib/tpb_thread_body.cc +++ b/gnuradio-runtime/lib/tpb_thread_body.cc @@ -36,6 +36,8 @@ namespace gr { : d_exec(block, max_noutput_items) { //std::cerr << "tpb_thread_body: " << block << std::endl; + + thread::set_thread_name(pthread_self(), boost::str(boost::format("%s%d") % block->name() % block->unique_id())); block_detail *d = block->detail().get(); block_executor::state s; |