blob: fb52bf2add194b35b91c0f0abe80618756ade719 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* -*- c++ -*- */
/*
* Copyright 2009,2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_GR_RUNTIME_MSG_ACCEPTER_H
#define INCLUDED_GR_RUNTIME_MSG_ACCEPTER_H
#include <gnuradio/api.h>
#include <gnuradio/messages/msg_accepter.h>
#include <pmt/pmt.h>
namespace gr {
/*!
* \brief Accepts messages and inserts them into a message queue,
* then notifies subclass gr::basic_block there is a message pending.
*/
class GR_RUNTIME_API msg_accepter : public gr::messages::msg_accepter
{
public:
msg_accepter();
~msg_accepter();
void post(pmt::pmt_t which_port, pmt::pmt_t msg);
};
} /* namespace gr */
#endif /* INCLUDED_GR_RUNTIME_MSG_ACCEPTER_H */
|