Skip to content

Add matching callback for writers#323

Merged
jparisu merged 2 commits intomainfrom
feature/on-writer-matched
Oct 13, 2022
Merged

Add matching callback for writers#323
jparisu merged 2 commits intomainfrom
feature/on-writer-matched

Conversation

@juanlofer-eprosima
Copy link
Copy Markdown
Contributor

Signed-off-by: Juan López Fernández juanlopez@eprosima.com

Signed-off-by: Juan López Fernández <juanlopez@eprosima.com>
@juanlofer-eprosima juanlofer-eprosima temporarily deployed to codecov October 13, 2022 07:25 Inactive
Copy link
Copy Markdown
Contributor

@jparisu jparisu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small suggestion

// Set listener after entity creation to avoid SEGFAULT (produced when callback using rtps_writer_ is
// invoked before the variable is fully set)
rtps_writer_->set_listener(this);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, set listener to null before destruction of the entity (for same reason).

NIT: Could you please check if this is done in Reader as well?

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 13, 2022

Codecov Report

Base: 45.54% // Head: 45.64% // Increases project coverage by +0.10% 🎉

Coverage data is based on head (df91f8c) compared to base (919b7e2).
Patch coverage: 80.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #323      +/-   ##
==========================================
+ Coverage   45.54%   45.64%   +0.10%     
==========================================
  Files          84       84              
  Lines        3364     3374      +10     
  Branches     1319     1323       +4     
==========================================
+ Hits         1532     1540       +8     
  Misses       1143     1143              
- Partials      689      691       +2     
Impacted Files Coverage Δ
...c/cpp/writer/implementations/rtps/CommonWriter.cpp 65.81% <77.77%> (+0.99%) ⬆️
...c/cpp/reader/implementations/rtps/CommonReader.cpp 66.92% <100.00%> (+0.26%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: Juan López Fernández <juanlopez@eprosima.com>
@juanlofer-eprosima juanlofer-eprosima temporarily deployed to codecov October 13, 2022 07:45 Inactive
Copy link
Copy Markdown
Contributor

@jparisu jparisu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jparisu jparisu merged commit 377a115 into main Oct 13, 2022
@jparisu jparisu deleted the feature/on-writer-matched branch October 13, 2022 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants