diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2014-04-06 03:11:38 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2014-04-06 03:11:38 -0700 |
commit | cd06fdc9372bb2489cc7a455b75cef445343296d (patch) | |
tree | 265ab672168b8a7a676e5d5c56cb1898cd1fe60b /gnuradio-runtime/lib/tpb_thread_body.cc | |
parent | 38ec48293ca2fc424f171d3273eeb3f4b7384af5 (diff) | |
parent | 12a63ecea7b7f6f5c6fe5e3d9c15a50fb5737ec6 (diff) |
Merge remote-tracking branch 'balint/3.7-2/thread_naming'
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; |