From 22e210bd5a165ba8db4767e2a4214b6e4bf4ac33 Mon Sep 17 00:00:00 2001 From: Jacob Gilbert <mrjacobagilbert@gmail.com> Date: Mon, 28 Sep 2020 08:58:50 -0700 Subject: 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. --- gnuradio-runtime/lib/basic_block.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnuradio-runtime/lib/basic_block.cc') 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) -- cgit v1.2.3