Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically unmatch remote participants on participant deletion (#4849
) (#4864) * Automatically unmatch remote participants on participant deletion (#4849) * Refs #21055. Add regresion test. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #21055. Remove `this->` on PDP.cpp Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #21055. Change nullptr comparisons on PDP.cpp Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #21055. Change nullptr comparisons on BuiltinProtocols.cpp Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #21055. Split `PDP::remove_remote_participant` in two methods. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #21055. Call new `PDP::disable` method when deleting `BuiltinProtocols`. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #21055. `PDP::disable` method automatically unmatches remote participants. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #21055. Use `std::lock_guard` where possible. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20995. Apply suggestion. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> * Refs #20995. Fix test build. Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> (cherry picked from commit 689dd3f) # Conflicts: # src/cpp/rtps/builtin/discovery/participant/PDP.cpp * Fix conflicts Signed-off-by: Miguel Company <miguelcompany@eprosima.com> --------- Signed-off-by: Miguel Company <miguelcompany@eprosima.com> Co-authored-by: Miguel Company <miguelcompany@eprosima.com>
- Loading branch information