root / mblock / src / lib / mb_msg_accepter_smp.h @ 6f50256f
History | View | Annotate | Download (1.3 kB)
| 1 | a6db1d09 | eb | /* -*- c++ -*- */
|
|---|---|---|---|
| 2 | a6db1d09 | eb | /*
|
| 3 | 6f50256f | jcorgan | * Copyright 2007,2009 Free Software Foundation, Inc. |
| 4 | a6db1d09 | eb | * |
| 5 | a6db1d09 | eb | * This file is part of GNU Radio |
| 6 | a6db1d09 | eb | * |
| 7 | a6db1d09 | eb | * GNU Radio is free software; you can redistribute it and/or modify |
| 8 | a6db1d09 | eb | * it under the terms of the GNU General Public License as published by |
| 9 | 937b719d | eb | * the Free Software Foundation; either version 3, or (at your option) |
| 10 | a6db1d09 | eb | * any later version. |
| 11 | a6db1d09 | eb | * |
| 12 | a6db1d09 | eb | * GNU Radio is distributed in the hope that it will be useful, |
| 13 | a6db1d09 | eb | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | a6db1d09 | eb | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | a6db1d09 | eb | * GNU General Public License for more details. |
| 16 | a6db1d09 | eb | * |
| 17 | a6db1d09 | eb | * You should have received a copy of the GNU General Public License along |
| 18 | a6db1d09 | eb | * with this program; if not, write to the Free Software Foundation, Inc., |
| 19 | a6db1d09 | eb | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20 | a6db1d09 | eb | */ |
| 21 | a6db1d09 | eb | #ifndef INCLUDED_MB_MSG_ACCEPTER_SMP_H
|
| 22 | a6db1d09 | eb | #define INCLUDED_MB_MSG_ACCEPTER_SMP_H
|
| 23 | a6db1d09 | eb | |
| 24 | 66dca696 | jcorgan | #include <mblock/msg_accepter.h> |
| 25 | a6db1d09 | eb | |
| 26 | a6db1d09 | eb | /*!
|
| 27 | a6db1d09 | eb | * \brief Concrete message acceptor that does an mb_msg_queue insertion |
| 28 | a6db1d09 | eb | */ |
| 29 | a6db1d09 | eb | class mb_msg_accepter_smp : public mb_msg_accepter |
| 30 | a6db1d09 | eb | {
|
| 31 | a6db1d09 | eb | mb_mblock_sptr d_mb; |
| 32 | 6f50256f | jcorgan | gruel::pmt_t d_port_name; |
| 33 | a6db1d09 | eb | |
| 34 | a6db1d09 | eb | public:
|
| 35 | 6f50256f | jcorgan | mb_msg_accepter_smp(mb_mblock_sptr mblock, gruel::pmt_t port_name); |
| 36 | a6db1d09 | eb | ~mb_msg_accepter_smp(); |
| 37 | a6db1d09 | eb | |
| 38 | 6f50256f | jcorgan | void operator()(gruel::pmt_t signal, gruel::pmt_t data, gruel::pmt_t metadata, mb_pri_t priority);
|
| 39 | a6db1d09 | eb | }; |
| 40 | a6db1d09 | eb | |
| 41 | a6db1d09 | eb | |
| 42 | a6db1d09 | eb | #endif /* INCLUDED_MB_MSG_ACCEPTER_SMP_H */ |