Repository navigation
Remove fixed guard conditions, add notify guard conditions - #210
Conversation
| number_of_subscriptions_(0), number_of_timers_(0), number_of_services_(0), | ||
| use_intra_process_comms_(use_intra_process_comms) | ||
| use_intra_process_comms_(use_intra_process_comms), | ||
| notify_guard_condition_(rmw_create_guard_condition()) |
There was a problem hiding this comment.
Where is this being deallocated?
There was a problem hiding this comment.
ah, yeah, I have to add a custom destructor for Node now.
There was a problem hiding this comment.
What if rmw_create_guard_condition() returns nullptr (fails)?
|
+1 |
|
I think this is good now. I changed some stuff since @wjwwood gave a +1 so you may want to re-review. http://ci.ros2.org/job/ci_linux/1126/ |
| if (rmw_trigger_guard_condition(notify_guard_condition_) != RMW_RET_OK) { | ||
| throw std::runtime_error( | ||
| std::string( | ||
| "Failed to notify waitset of change to node state: ") + rmw_get_error_string()); |
There was a problem hiding this comment.
Would it be helpful to customize the following error message to mention how the node state changed in order to distinguish them in case they happen?
There was a problem hiding this comment.
That's a good idea. I changed the error messages to the format "Failed to notify waitset on X creation" in ddc6609, where X is the type of entity added to the node.
|
this has sat for a while so I'm going to merge soon unless there are objections. |
|
It's in "in progress"? I plus ones it before, so it should be fine. You were just fixing up tests right? |
|
Yeah... I think the label is a Waffle/Github sync bug. Not sure about that. |
Signed-off-by: Knese Karsten <[email protected]>
Fixes #209
also connects to ros2/rcl#33