diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2019-08-07 21:45:12 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-08-09 23:04:28 +0200 |
commit | f7bbf2c1d8d780294f3e016aff239ca35eb6516e (patch) | |
tree | e09ab6112e02b2215b2d59ac24d3d6ea2edac745 /gnuradio-runtime/include/gnuradio/messages/msg_passing.h | |
parent | 78431dc6941e3acc67c858277dfe4a0ed583643c (diff) |
Tree: clang-format without the include sorting
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/messages/msg_passing.h')
-rw-r--r-- | gnuradio-runtime/include/gnuradio/messages/msg_passing.h | 160 |
1 files changed, 78 insertions, 82 deletions
diff --git a/gnuradio-runtime/include/gnuradio/messages/msg_passing.h b/gnuradio-runtime/include/gnuradio/messages/msg_passing.h index 42b300a574..c8df3db7bd 100644 --- a/gnuradio-runtime/include/gnuradio/messages/msg_passing.h +++ b/gnuradio-runtime/include/gnuradio/messages/msg_passing.h @@ -31,93 +31,89 @@ #include <gnuradio/messages/msg_accepter.h> namespace gr { - namespace messages { +namespace messages { - /*! - * \brief send message to msg_accepter - * - * \param accepter is the target of the send. - * \param which_port A pmt symbol describing the port by name. - * \param msg is the message to send. It's usually a pmt tuple. - * - * Sending a message is an asynchronous operation. The \p send - * call will not wait for the message either to arrive at the - * destination or to be received. - * - * \returns msg - */ - static inline pmt::pmt_t - send(msg_accepter_sptr accepter, const pmt::pmt_t &which_port, - const pmt::pmt_t &msg) - { - accepter->post(which_port, msg); - return msg; - } +/*! + * \brief send message to msg_accepter + * + * \param accepter is the target of the send. + * \param which_port A pmt symbol describing the port by name. + * \param msg is the message to send. It's usually a pmt tuple. + * + * Sending a message is an asynchronous operation. The \p send + * call will not wait for the message either to arrive at the + * destination or to be received. + * + * \returns msg + */ +static inline pmt::pmt_t +send(msg_accepter_sptr accepter, const pmt::pmt_t& which_port, const pmt::pmt_t& msg) +{ + accepter->post(which_port, msg); + return msg; +} - /*! - * \brief send message to msg_accepter - * - * \param accepter is the target of the send. - * \param which_port A pmt symbol describing the port by name. - * \param msg is the message to send. It's usually a pmt tuple. - * - * Sending a message is an asynchronous operation. The \p send - * call will not wait for the message either to arrive at the - * destination or to be received. - * - * \returns msg - */ - static inline pmt::pmt_t - send(msg_accepter *accepter, const pmt::pmt_t &which_port, - const pmt::pmt_t &msg) - { - accepter->post(which_port, msg); - return msg; - } +/*! + * \brief send message to msg_accepter + * + * \param accepter is the target of the send. + * \param which_port A pmt symbol describing the port by name. + * \param msg is the message to send. It's usually a pmt tuple. + * + * Sending a message is an asynchronous operation. The \p send + * call will not wait for the message either to arrive at the + * destination or to be received. + * + * \returns msg + */ +static inline pmt::pmt_t +send(msg_accepter* accepter, const pmt::pmt_t& which_port, const pmt::pmt_t& msg) +{ + accepter->post(which_port, msg); + return msg; +} - /*! - * \brief send message to msg_accepter - * - * \param accepter is the target of the send. - * \param which_port A pmt symbol describing the port by name. - * \param msg is the message to send. It's usually a pmt tuple. - * - * Sending a message is an asynchronous operation. The \p send - * call will not wait for the message either to arrive at the - * destination or to be received. - * - * \returns msg - */ - static inline pmt::pmt_t - send(msg_accepter &accepter, const pmt::pmt_t &which_port, - const pmt::pmt_t &msg) - { - accepter.post(which_port, msg); - return msg; - } +/*! + * \brief send message to msg_accepter + * + * \param accepter is the target of the send. + * \param which_port A pmt symbol describing the port by name. + * \param msg is the message to send. It's usually a pmt tuple. + * + * Sending a message is an asynchronous operation. The \p send + * call will not wait for the message either to arrive at the + * destination or to be received. + * + * \returns msg + */ +static inline pmt::pmt_t +send(msg_accepter& accepter, const pmt::pmt_t& which_port, const pmt::pmt_t& msg) +{ + accepter.post(which_port, msg); + return msg; +} - /*! - * \brief send message to msg_accepter - * - * \param accepter is the target of the send. - * aprecond: pmt::is_msg_accepter(accepter) - * \param which_port A pmt symbol describing the port by name. - * \param msg is the message to send. It's usually a pmt tuple. - * - * Sending a message is an asynchronous operation. The \p send - * call will not wait for the message either to arrive at the - * destination or to be received. - * - * \returns msg - */ - static inline pmt::pmt_t - send(pmt::pmt_t accepter, const pmt::pmt_t &which_port, - const pmt::pmt_t &msg) - { - return send(pmt::msg_accepter_ref(accepter), which_port, msg); - } +/*! + * \brief send message to msg_accepter + * + * \param accepter is the target of the send. + * aprecond: pmt::is_msg_accepter(accepter) + * \param which_port A pmt symbol describing the port by name. + * \param msg is the message to send. It's usually a pmt tuple. + * + * Sending a message is an asynchronous operation. The \p send + * call will not wait for the message either to arrive at the + * destination or to be received. + * + * \returns msg + */ +static inline pmt::pmt_t +send(pmt::pmt_t accepter, const pmt::pmt_t& which_port, const pmt::pmt_t& msg) +{ + return send(pmt::msg_accepter_ref(accepter), which_port, msg); +} - } /* namespace messages */ +} /* namespace messages */ } /* namespace gr */ #endif /* INCLUDED_MSG_PASSING_H */ |