diff options
Diffstat (limited to 'gr-blocks/lib/message_strobe_impl.h')
-rw-r--r-- | gr-blocks/lib/message_strobe_impl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-blocks/lib/message_strobe_impl.h b/gr-blocks/lib/message_strobe_impl.h index 1cb75492ea..f378054813 100644 --- a/gr-blocks/lib/message_strobe_impl.h +++ b/gr-blocks/lib/message_strobe_impl.h @@ -12,6 +12,7 @@ #define INCLUDED_GR_MESSAGE_STROBE_IMPL_H #include <gnuradio/blocks/message_strobe.h> +#include <atomic> namespace gr { namespace blocks { @@ -20,7 +21,7 @@ class BLOCKS_API message_strobe_impl : public message_strobe { private: gr::thread::thread d_thread; - bool d_finished; + std::atomic<bool> d_finished; long d_period_ms; pmt::pmt_t d_msg; const pmt::pmt_t d_port; |