diff options
author | Marcus Müller <Marcus.Mueller@ettus.com> | 2015-04-19 11:00:30 +0200 |
---|---|---|
committer | Marcus Müller <Marcus.Mueller@ettus.com> | 2015-04-19 11:03:19 +0200 |
commit | a7489e50425b0760b0ef3a302225064c1868880f (patch) | |
tree | 7a4024c19a27c17b9ed96cd969864457648d1292 /gr-blocks/lib/message_strobe_impl.cc | |
parent | a6e86acecbffbbbbdac9d2da8de018dd40164992 (diff) |
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
Diffstat (limited to 'gr-blocks/lib/message_strobe_impl.cc')
-rw-r--r-- | gr-blocks/lib/message_strobe_impl.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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))); |