summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/message_strobe_impl.h
diff options
context:
space:
mode:
authorPeter Horvath <ejcspii@gmail.com>2018-06-30 15:22:25 +0200
committerMarcus Müller <marcus.mueller@ettus.com>2018-07-08 08:41:04 +0200
commit0b752c07ef9a2597f1a8f6e910291eed3376e8aa (patch)
treed04860f69c2f6237f76748d0720c1842456a6472 /gr-blocks/lib/message_strobe_impl.h
parent7247b50a23681475cdf88518b52fad3185321073 (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.h8
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.