Loading...
Searching...
No Matches
msg_accepter.h
Go to the documentation of this file.
/* -*- 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() override;
void post(pmt::pmt_t which_port, pmt::pmt_t msg) override;
};
} /* namespace gr */
#endif /* INCLUDED_GR_RUNTIME_MSG_ACCEPTER_H */
gr::messages::msg_accepter
Virtual base class that accepts messages.
Definition messages/msg_accepter.h:25
gr::msg_accepter::~msg_accepter
~msg_accepter() override
gr::msg_accepter::post
void post(pmt::pmt_t which_port, pmt::pmt_t msg) override
send msg to msg_accepter on port which_port
gr::msg_accepter::msg_accepter
msg_accepter()
api.h
GR_RUNTIME_API
#define GR_RUNTIME_API
Definition gnuradio-runtime/include/gnuradio/api.h:18
msg_accepter.h
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
pmt::pmt_t
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition pmt.h:83
pmt.h