forked from ros2/rclcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store the subscriber, client, service and timer
objects as shared pointers (ros2#349) To prevent an object from being deleted while the rcl_wait_set is using raw pointers to internal members, we store them as shared pointers. The subscriptions are stored as a pair because a single subscription handle can have both an intra and non-intra process handle being used by the wait set. In order to remove objects based on null wait set handles, we need both.
- Loading branch information
Showing
1 changed file
with
130 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters