23 #ifndef INCLUDED_GR_THROTTLE_IMPL_H
24 #define INCLUDED_GR_THROTTLE_IMPL_H
27 #include <boost/thread/thread.hpp>
35 boost::system_time d_start;
38 double d_samps_per_tick, d_samps_per_us;
47 int work(
int noutput_items,
48 gr_vector_const_void_star &input_items,
49 gr_vector_void_star &output_items);
Definition: throttle_impl.h:32
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
just like gr_block::general_work, only this arranges to call consume_each for you ...
throttle_impl(size_t itemsize, double samples_per_sec)
unsigned __int64 uint64_t
Definition: stdint.h:90
throttle flow of samples such that the average rate does not exceed samples_per_sec.input: one stream of itemsize; output: one stream of itemsize
Definition: throttle.h:45
double sample_rate() const
Get the sample rate in samples per second.
void set_sample_rate(double rate)
Sets the sample rate in samples per second.