diff options
author | Peter Horvath <ejcspii@gmail.com> | 2018-06-30 15:22:25 +0200 |
---|---|---|
committer | Marcus Müller <marcus.mueller@ettus.com> | 2018-07-08 08:41:04 +0200 |
commit | 0b752c07ef9a2597f1a8f6e910291eed3376e8aa (patch) | |
tree | d04860f69c2f6237f76748d0720c1842456a6472 /gr-blocks/lib/message_strobe_impl.h | |
parent | 7247b50a23681475cdf88518b52fad3185321073 (diff) |
Unbreak boost 1.67. Constrain the delay in message_strobe to integer milliseconds.
Diffstat (limited to 'gr-blocks/lib/message_strobe_impl.h')
-rw-r--r-- | gr-blocks/lib/message_strobe_impl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-blocks/lib/message_strobe_impl.h b/gr-blocks/lib/message_strobe_impl.h index 3ce71af58f..06a3fd3374 100644 --- a/gr-blocks/lib/message_strobe_impl.h +++ b/gr-blocks/lib/message_strobe_impl.h @@ -33,19 +33,19 @@ namespace gr { private: boost::shared_ptr<gr::thread::thread> d_thread; bool d_finished; - float d_period_ms; + long d_period_ms; pmt::pmt_t d_msg; void run(); public: - message_strobe_impl(pmt::pmt_t msg, float period_ms); + message_strobe_impl(pmt::pmt_t msg, long period_ms); ~message_strobe_impl(); void set_msg(pmt::pmt_t msg) { d_msg = msg; } pmt::pmt_t msg() const { return d_msg; } - void set_period(float period_ms) { d_period_ms = period_ms; } - float period() const { return d_period_ms; } + void set_period(long period_ms) { d_period_ms = period_ms; } + long period() const { return d_period_ms; } // Overloading these to start and stop the internal thread that // periodically produces the message. |