void send_messages_mt_impl(unsigned int id) { char chan[1] = { char(65 + id) }; message_type t_msg( chan, 1, level::trace, "This is a trace-log!" , 21 ); message_type d_msg( chan, 1, level::debug, "This is a debug-log!" , 21 ); message_type i_msg( chan, 1, level::info, "This is an info-log!" , 21 ); message_type w_msg( chan, 1, level::warn, "This is a warning-log!", 23 ); message_type e_msg( chan, 1, level::error, "This is an error-log!" , 22 ); distributor_type::instance().log(t_msg); distributor_type::instance().log(d_msg); distributor_type::instance().log(i_msg); distributor_type::instance().log(w_msg); distributor_type::instance().log(e_msg); }
void send_messages() { benchmark::steady_timer t(time_vector); char chan[1] = { char(65) }; message_type t_msg( chan, 1, level::trace, "This is a trace-log!" , 21 ); message_type d_msg( chan, 1, level::debug, "This is a debug-log!" , 21 ); message_type i_msg( chan, 1, level::info, "This is an info-log!" , 21 ); message_type w_msg( chan, 1, level::warn, "This is a warning-log!", 23 ); message_type e_msg( chan, 1, level::error, "This is an error-log!" , 22 ); distributor_type::instance().log(t_msg); distributor_type::instance().log(d_msg); distributor_type::instance().log(i_msg); distributor_type::instance().log(w_msg); distributor_type::instance().log(e_msg); }
void remote_message_recv(const ID& tag_id, darc::buffer::shared_buffer data) { inbound_data_ptr<serializer::ros_serializer, T> i_msg(data); dispatch_locally(i_msg.get()); }