GNU Radio's FOO Package: rtt_measure_impl.h Source File

GNU Radio's FOO Package

rtt_measure_impl.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2013 Christoph Leitner <c.leitner@student.uibk.ac.at>
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef INCLUDED_FOO_RTT_MEASURE_IMPL_H
19#define INCLUDED_FOO_RTT_MEASURE_IMPL_H
20
21#include <foo/rtt_measure.h>
22#include <atomic>
23namespace gr {
24namespace foo {
25 class rtt_measure_impl : public rtt_measure {
26 private:
27 unsigned long d_interval;
28 std::atomic_bool d_stop;
29 boost::posix_time::ptime d_start_time;
30 gr::thread::mutex d_mutex;
31 gr::thread::thread d_thread;
32 gr::thread::condition_variable d_msg_received;
33 public:
34 rtt_measure_impl(unsigned long interval);
35 ~rtt_measure_impl();
36 void run();
37 int general_work(int noutput, gr_vector_int& ninput_items,
38 gr_vector_const_void_star& input_items,
39 gr_vector_void_star& output_items );
40 boost::posix_time::ptime start_time();
41 };
42}
43}
44
45#endif
gr::foo::rtt_measure_impl::run
void run()
gr::foo::rtt_measure_impl::start_time
boost::posix_time::ptime start_time()
gr::foo::rtt_measure_impl::general_work
int general_work(int noutput, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::foo::rtt_measure_impl::rtt_measure_impl
rtt_measure_impl(unsigned long interval)
gr::foo::rtt_measure_impl::~rtt_measure_impl
~rtt_measure_impl()
gr::foo::rtt_measure
Definition rtt_measure.h:28
gr::foo
Definition burst_tagger.h:28
gr
Definition burst_tagger.h:27
rtt_measure.h