Skip to content

Commit

Permalink
Instrument loaned message publication code path (#2240)
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <[email protected]>
  • Loading branch information
christophebedard authored Jul 21, 2023
1 parent c0d72c3 commit 22a954e
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, nullptr, static_cast<const void *>(msg.get()));
auto status = rcl_publish_loaned_message(publisher_handle_.get(), msg.get(), nullptr);

if (RCL_RET_PUBLISHER_INVALID == status) {
Expand Down

0 comments on commit 22a954e

Please sign in to comment.