diff options
author | Thomas Habets <thomas@habets.se> | 2020-08-11 11:37:36 +0100 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2020-08-14 04:19:58 -0700 |
commit | 41d6265b8b049b78757770d65cee7b7e2bbbab9f (patch) | |
tree | e111cd6726b6ef423bc19fdecd79935296e7480f /gr-blocks/lib/message_strobe_impl.cc | |
parent | 65cc420b46b8c4d715be0fe8f70e6a54f8ee0166 (diff) |
blocks/message_strobe: Remove manual memory management
Diffstat (limited to 'gr-blocks/lib/message_strobe_impl.cc')
-rw-r--r-- | gr-blocks/lib/message_strobe_impl.cc | 7 |
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(); } |