Conversation
|
Pulls: #1308 |
|
Pulls: #1308 |
…er lifetime management Signed-off-by: CY Chen <cyc@nvidia.com>
ca37add to
730a4ed
Compare
|
Pulls: #1308 |
|
Pulls: #1308 |
|
Pulls: #1308 |
…er lifetime management Signed-off-by: CY Chen <cyc@nvidia.com>
ca37add to
730a4ed
Compare
|
Pulls: #1308 |
Description
This pull request adds
rcl_subscription_options_set_acceptable_buffer_backends()to properly manage the lifetime of theacceptable_buffer_backendsstring in subscription options, following the same pattern used byrcl_subscription_options_set_content_filter_options().This PR introduces the following changes:
rcl_subscription_options_set_acceptable_buffer_backends(): Allocates an owned copy of the string usingrcutils_strdup()with the rcl allocator, matching the lifetime management pattern of content filter options.rcl_subscription_options_fini(): Frees the allocatedacceptable_buffer_backendsstring when subscription options are finalized.This change is part of the broader ROS 2 native buffer feature.
It addresses review feedback on ros2/rclcpp#3098.
Is this user-facing behavior change?
No. This is an internal lifetime safety improvement.
Did you use Generative AI?
Yes. Claude (claude-4.6-opus) via Cursor was used to assist with creating an initial prototype version of the changes contained in this PR.
Additional Information
This PR is a dependency for the
acceptable_buffer_backendschanges in: