diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2021-03-19 17:51:05 +0100 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2021-03-20 18:45:55 +0100 |
commit | 2d6109b6f8fa116142cb473d5b5f27eb365e885c (patch) | |
tree | 16bfd1655315bbad082f01ed97479b82493da07f /gr-blocks | |
parent | f3f4055ebd0c69634ddd40a322b7c4a1853647e7 (diff) |
blocks: replace ::bind with lambda
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gr-blocks')
-rw-r--r-- | gr-blocks/lib/message_strobe_impl.cc | 2 | ||||
-rw-r--r-- | gr-blocks/lib/message_strobe_random_impl.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/lib/message_strobe_impl.cc b/gr-blocks/lib/message_strobe_impl.cc index f3b367542b..8a65094ef1 100644 --- a/gr-blocks/lib/message_strobe_impl.cc +++ b/gr-blocks/lib/message_strobe_impl.cc @@ -41,7 +41,7 @@ message_strobe_impl::~message_strobe_impl() {} bool message_strobe_impl::start() { d_finished = false; - d_thread = gr::thread::thread(std::bind(&message_strobe_impl::run, this)); + d_thread = gr::thread::thread([this] { run(); }); return block::start(); } diff --git a/gr-blocks/lib/message_strobe_random_impl.cc b/gr-blocks/lib/message_strobe_random_impl.cc index 704070b48c..c0c241e734 100644 --- a/gr-blocks/lib/message_strobe_random_impl.cc +++ b/gr-blocks/lib/message_strobe_random_impl.cc @@ -50,7 +50,7 @@ message_strobe_random_impl::message_strobe_random_impl( { // set up ports message_port_register_out(d_port); - d_thread = gr::thread::thread(std::bind(&message_strobe_random_impl::run, this)); + d_thread = gr::thread::thread([this] { run(); }); message_port_register_in(pmt::mp("set_msg")); set_msg_handler(pmt::mp("set_msg"), [this](pmt::pmt_t msg) { this->set_msg(msg); }); |