GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
gr::messages Namespace Reference

Classes

class  msg_accepter
 Virtual base class that accepts messages. More...
 
class  msg_accepter_msgq
 Concrete class that accepts messages and inserts them into a message queue. More...
 
class  msg_producer
 Virtual base class that produces messages. More...
 
class  msg_queue
 thread-safe message queue More...
 

Functions

static pmt::pmt_t send (msg_accepter_sptr accepter, const pmt::pmt_t &which_port, const pmt::pmt_t &msg)
 send message to msg_accepter More...
 
static pmt::pmt_t send (msg_accepter *accepter, const pmt::pmt_t &which_port, const pmt::pmt_t &msg)
 send message to msg_accepter More...
 
static pmt::pmt_t send (msg_accepter &accepter, const pmt::pmt_t &which_port, const pmt::pmt_t &msg)
 send message to msg_accepter More...
 
static pmt::pmt_t send (pmt::pmt_t accepter, const pmt::pmt_t &which_port, const pmt::pmt_t &msg)
 send message to msg_accepter More...
 
msg_queue_sptr make_msg_queue (unsigned int limit=0)
 

Function Documentation

◆ make_msg_queue()

msg_queue_sptr gr::messages::make_msg_queue ( unsigned int  limit = 0)

◆ send() [1/4]

static pmt::pmt_t gr::messages::send ( msg_accepter accepter,
const pmt::pmt_t which_port,
const pmt::pmt_t msg 
)
inlinestatic

send message to msg_accepter

Parameters
accepteris the target of the send.
which_portA pmt symbol describing the port by name.
msgis the message to send. It's usually a pmt tuple.

Sending a message is an asynchronous operation. The send call will not wait for the message either to arrive at the destination or to be received.

Returns
msg

References gr::msgport_names::msg(), and gr::messages::msg_accepter::post().

◆ send() [2/4]

static pmt::pmt_t gr::messages::send ( msg_accepter accepter,
const pmt::pmt_t which_port,
const pmt::pmt_t msg 
)
inlinestatic

send message to msg_accepter

Parameters
accepteris the target of the send.
which_portA pmt symbol describing the port by name.
msgis the message to send. It's usually a pmt tuple.

Sending a message is an asynchronous operation. The send call will not wait for the message either to arrive at the destination or to be received.

Returns
msg

References gr::msgport_names::msg(), and gr::messages::msg_accepter::post().

◆ send() [3/4]

static pmt::pmt_t gr::messages::send ( msg_accepter_sptr  accepter,
const pmt::pmt_t which_port,
const pmt::pmt_t msg 
)
inlinestatic

send message to msg_accepter

Parameters
accepteris the target of the send.
which_portA pmt symbol describing the port by name.
msgis the message to send. It's usually a pmt tuple.

Sending a message is an asynchronous operation. The send call will not wait for the message either to arrive at the destination or to be received.

Returns
msg

References gr::msgport_names::msg().

Referenced by send().

◆ send() [4/4]

static pmt::pmt_t gr::messages::send ( pmt::pmt_t  accepter,
const pmt::pmt_t which_port,
const pmt::pmt_t msg 
)
inlinestatic

send message to msg_accepter

Parameters
accepteris the target of the send. aprecond: pmt::is_msg_accepter(accepter)
which_portA pmt symbol describing the port by name.
msgis the message to send. It's usually a pmt tuple.

Sending a message is an asynchronous operation. The send call will not wait for the message either to arrive at the destination or to be received.

Returns
msg

References gr::msgport_names::msg(), pmt::msg_accepter_ref(), and send().