From ad5beaeb3a050b71de128b03c61f959765483720 Mon Sep 17 00:00:00 2001 From: Marcus Müller <mmueller@gnuradio.org> Date: Fri, 19 Mar 2021 22:00:09 +0100 Subject: blocks: message_debug: avoid refcount modification in 'hot' PMT handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcus Müller <mmueller@gnuradio.org> --- gr-blocks/lib/message_debug_impl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gr-blocks/lib/message_debug_impl.h') diff --git a/gr-blocks/lib/message_debug_impl.h b/gr-blocks/lib/message_debug_impl.h index 2c2077a65d..5027bfe745 100644 --- a/gr-blocks/lib/message_debug_impl.h +++ b/gr-blocks/lib/message_debug_impl.h @@ -35,7 +35,7 @@ private: * * \param msg A pmt message passed from the scheduler's message handling. */ - void print(pmt::pmt_t msg); + void print(const pmt::pmt_t& msg); /*! * \brief PDU formatted messages received in this port are printed to stdout. @@ -49,7 +49,7 @@ private: * * \param pdu A PDU message passed from the scheduler's message handling. */ - void print_pdu(pmt::pmt_t pdu); + void print_pdu(const pmt::pmt_t& pdu); /*! * \brief Messages received in this port are stored in a vector. @@ -62,7 +62,7 @@ private: * * \param msg A pmt message passed from the scheduler's message handling. */ - void store(pmt::pmt_t msg); + void store(const pmt::pmt_t& msg); gr::thread::mutex d_mutex; std::vector<pmt::pmt_t> d_messages; -- cgit v1.2.3