diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2021-03-19 22:00:09 +0100 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-03-23 06:31:20 -0400 |
commit | ad5beaeb3a050b71de128b03c61f959765483720 (patch) | |
tree | 5f7154e34e3fe298c422b224821adc72f659094a /gr-blocks/lib/message_debug_impl.h | |
parent | eccba2048c17e0ef6002cff595effb05f6795649 (diff) |
blocks: message_debug: avoid refcount modification in 'hot' PMT handling
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gr-blocks/lib/message_debug_impl.h')
-rw-r--r-- | gr-blocks/lib/message_debug_impl.h | 6 |
1 files changed, 3 insertions, 3 deletions
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; |