Skip to content

Commit

Permalink
Instrument loaned message publication code path
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
  • Loading branch information
christophebedard committed Jul 19, 2023
1 parent c0d72c3 commit db98d12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rclcpp/include/rclcpp/publisher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ class Publisher : public PublisherBase
do_loaned_message_publish(
std::unique_ptr<ROSMessageType, std::function<void(ROSMessageType *)>> msg)
{
TRACETOOLS_TRACEPOINT(rclcpp_publish, static_cast<const void *>(msg));
auto status = rcl_publish_loaned_message(publisher_handle_.get(), msg.get(), nullptr);

if (RCL_RET_PUBLISHER_INVALID == status) {
Expand Down

0 comments on commit db98d12

Please sign in to comment.