Statistics
| Branch: | Tag: | Revision:

root / gnuradio-core / src / lib / runtime / gr_tpb_thread_body.h @ 1fd57936

History | View | Annotate | Download (1.4 kB)

1 2c8ea58e eb
/* -*- c++ -*- */
2 2c8ea58e eb
/*
3 2c8ea58e eb
 * Copyright 2008 Free Software Foundation, Inc.
4 2c8ea58e eb
 * 
5 2c8ea58e eb
 * This file is part of GNU Radio
6 2c8ea58e eb
 * 
7 2c8ea58e eb
 * GNU Radio is free software; you can redistribute it and/or modify
8 2c8ea58e eb
 * it under the terms of the GNU General Public License as published by
9 2c8ea58e eb
 * the Free Software Foundation; either version 3, or (at your option)
10 2c8ea58e eb
 * any later version.
11 2c8ea58e eb
 * 
12 2c8ea58e eb
 * GNU Radio is distributed in the hope that it will be useful,
13 2c8ea58e eb
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 2c8ea58e eb
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 2c8ea58e eb
 * GNU General Public License for more details.
16 2c8ea58e eb
 * 
17 2c8ea58e eb
 * You should have received a copy of the GNU General Public License along
18 2c8ea58e eb
 * with this program; if not, write to the Free Software Foundation, Inc.,
19 2c8ea58e eb
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 2c8ea58e eb
 */
21 2c8ea58e eb
#ifndef INCLUDED_GR_TPB_THREAD_BODY_H
22 2c8ea58e eb
#define INCLUDED_GR_TPB_THREAD_BODY_H
23 2c8ea58e eb
24 2c8ea58e eb
#include <gr_block_executor.h>
25 2c8ea58e eb
#include <gr_block.h>
26 2c8ea58e eb
#include <gr_block_detail.h>
27 2c8ea58e eb
28 2c8ea58e eb
/*!
29 2c8ea58e eb
 * \brief The body of each thread-per-block thread.
30 2c8ea58e eb
 *
31 2c8ea58e eb
 * One of these is instantiated in its own thread for each block.  The
32 2c8ea58e eb
 * constructor turns into the main loop which returns when the block is
33 2c8ea58e eb
 * done or is interrupted.
34 2c8ea58e eb
 */
35 2c8ea58e eb
36 2c8ea58e eb
class gr_tpb_thread_body {
37 2c8ea58e eb
  gr_block_executor        d_exec;
38 2c8ea58e eb
39 2c8ea58e eb
public:
40 2c8ea58e eb
  gr_tpb_thread_body(gr_block_sptr block);
41 2c8ea58e eb
  ~gr_tpb_thread_body();
42 2c8ea58e eb
};
43 2c8ea58e eb
44 2c8ea58e eb
45 2c8ea58e eb
#endif /* INCLUDED_GR_TPB_THREAD_BODY_H */