diff options
author | Jacob Gilbert <mrjacobagilbert@gmail.com> | 2020-09-28 08:58:50 -0700 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-09-30 06:17:05 -0400 |
commit | 22e210bd5a165ba8db4767e2a4214b6e4bf4ac33 (patch) | |
tree | 7b630c4d9477f300b069913a742ece4ee2c023dd /gnuradio-runtime/lib/basic_block.cc | |
parent | c196dacea56ef938902646a2143907858415b240 (diff) |
runtime: fix latency issue caused by setting block alias on message block
This changes how the blocks are identified when they need to be notified that they have messages waiting. It also clarifies the name the block is registered with explicitly, and adds exceptions for looking up blocks that do not exist.
Diffstat (limited to 'gnuradio-runtime/lib/basic_block.cc')
-rw-r--r-- | gnuradio-runtime/lib/basic_block.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-runtime/lib/basic_block.cc b/gnuradio-runtime/lib/basic_block.cc index c6ac346d11..f3a06476b4 100644 --- a/gnuradio-runtime/lib/basic_block.cc +++ b/gnuradio-runtime/lib/basic_block.cc @@ -188,7 +188,7 @@ void basic_block::insert_tail(pmt::pmt_t which_port, pmt::pmt_t msg) msg_queue_ready[which_port]->notify_one(); // wake up thread if BLKD_IN or BLKD_OUT - global_block_registry.notify_blk(alias()); + global_block_registry.notify_blk(d_symbol_name); } pmt::pmt_t basic_block::delete_head_nowait(pmt::pmt_t which_port) |