summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/message_strobe_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/lib/message_strobe_impl.cc')
-rw-r--r--gr-blocks/lib/message_strobe_impl.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/gr-blocks/lib/message_strobe_impl.cc b/gr-blocks/lib/message_strobe_impl.cc
index 8980d43530..094bb4348c 100644
--- a/gr-blocks/lib/message_strobe_impl.cc
+++ b/gr-blocks/lib/message_strobe_impl.cc
@@ -51,8 +51,7 @@ bool message_strobe_impl::start()
// NOTE: d_finished should be something explicitly thread safe. But since
// nothing breaks on concurrent access, I'll just leave it as bool.
d_finished = false;
- d_thread = std::shared_ptr<gr::thread::thread>(
- new gr::thread::thread(std::bind(&message_strobe_impl::run, this)));
+ d_thread = gr::thread::thread(std::bind(&message_strobe_impl::run, this));
return block::start();
}
@@ -61,8 +60,8 @@ bool message_strobe_impl::stop()
{
// Shut down the thread
d_finished = true;
- d_thread->interrupt();
- d_thread->join();
+ d_thread.interrupt();
+ d_thread.join();
return block::stop();
}