From a7489e50425b0760b0ef3a302225064c1868880f Mon Sep 17 00:00:00 2001
From: Marcus Müller <Marcus.Mueller@ettus.com>
Date: Sun, 19 Apr 2015 11:00:30 +0200
Subject: Moved setting of d_finished from ctor to start()

Making the message_strobe able to cope with reconfiguration.

Ref:
http://lists.gnu.org/archive/html/discuss-gnuradio/2015-04/msg00285.html
---
 gr-blocks/lib/message_strobe_impl.cc | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'gr-blocks/lib/message_strobe_impl.cc')

diff --git a/gr-blocks/lib/message_strobe_impl.cc b/gr-blocks/lib/message_strobe_impl.cc
index ae13808674..d12e0ebd4d 100644
--- a/gr-blocks/lib/message_strobe_impl.cc
+++ b/gr-blocks/lib/message_strobe_impl.cc
@@ -67,6 +67,9 @@ namespace gr {
     bool
     message_strobe_impl::start()
     {
+      // NOTE: d_finished should be something explicitely thread safe. But since
+      // nothing breaks on concurrent access, I'll just leave it as bool.
+      d_finished = false;
       d_thread = boost::shared_ptr<gr::thread::thread>
         (new gr::thread::thread(boost::bind(&message_strobe_impl::run, this)));
 
-- 
cgit v1.2.3