summaryrefslogtreecommitdiff
path: root/gr-blocks/lib
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/lib')
-rw-r--r--gr-blocks/lib/message_strobe_impl.cc2
-rw-r--r--gr-blocks/lib/message_strobe_random_impl.cc2
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); });