commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/03: Moved setting of d_finished from cto


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/03: Moved setting of d_finished from ctor to start()
Date: Wed, 22 Apr 2015 03:12:50 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit a7489e50425b0760b0ef3a302225064c1868880f
Author: Marcus Müller <address@hidden>
Date:   Sun Apr 19 11:00:30 2015 +0200

    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(+)

diff --git a/gr-blocks/lib/message_strobe_impl.cc 
b/gr-blocks/lib/message_strobe_impl.cc
index ae13808..d12e0eb 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)));
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]