GNU Radio's CCS 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 {
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);
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
Definition rtt_measure_impl.h:25
boost::posix_time::ptime start_time()
int general_work(int noutput, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
rtt_measure_impl(unsigned long interval)
Definition rtt_measure.h:28
Definition burst_tagger.h:27