Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iox-#831 Replace MethodCallback with cxx::function #1423

Conversation

mossmaurice
Copy link
Contributor

@mossmaurice mossmaurice commented Jun 27, 2022

Pre-Review Checklist for the PR Author

  1. Code follows the coding style of CONTRIBUTING.md
  2. Tests follow the best practice for testing
  3. Changelog updated in the unreleased section including API breaking changes
  4. Branch follows the naming format (iox-#123-this-is-a-branch)
  5. Commits messages are according to this guideline
    • Commit messages have the issue ID (iox-#123 commit text)
    • Commit messages are signed (git commit -s)
    • Commit author matches Eclipse Contributor Agreement (and ECA is signed)
  6. Update the PR title
    • Follow the same conventions as for commit messages
    • Link to the relevant issue
  7. Relevant issues are linked
  8. Add sensible notes for the reviewer
  9. All checks have passed (except task-list-completed)
  10. Assign PR to reviewer

Notes for Reviewer

  • Replaces MethodCallback with cxx::function
  • Removes unused Trigger::updateOrigin method

Checklist for the PR Reviewer

  • Commits are properly organized and messages are according to the guideline
  • Code according to our coding style and naming conventions
  • Unit tests have been written for new behavior
    • Each unit test case has a unique UUID
  • Public API changes are documented via doxygen
  • Copyright owner are updated in the changed files
  • PR title describes the changes

Post-review Checklist for the PR Author

  1. All open points are addressed and tracked via issues

References

@mossmaurice mossmaurice added the refactoring Refactor code without adding features label Jun 27, 2022
@mossmaurice mossmaurice self-assigned this Jun 27, 2022
@mossmaurice mossmaurice force-pushed the iox-#831-replace-methodcallback-with-cxx-function branch 3 times, most recently from d1f0404 to 8e323ff Compare June 27, 2022 14:59
@codecov
Copy link

codecov bot commented Jun 27, 2022

Codecov Report

Merging #1423 (f2586e0) into master (4763bd9) will decrease coverage by 0.08%.
The diff coverage is 77.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1423      +/-   ##
==========================================
- Coverage   78.83%   78.75%   -0.09%     
==========================================
  Files         378      376       -2     
  Lines       14579    14486      -93     
  Branches     2027     2013      -14     
==========================================
- Hits        11493    11408      -85     
- Misses       2432     2433       +1     
+ Partials      654      645       -9     
Flag Coverage Δ
unittests 78.41% <77.77%> (-0.09%) ⬇️
unittests_timing 14.80% <77.77%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...sh/include/iceoryx_posh/internal/popo/listener.inl 91.89% <ø> (ø)
...osh/include/iceoryx_posh/internal/popo/trigger.inl 100.00% <ø> (+4.16%) ⬆️
...nternal/roudi/introspection/port_introspection.hpp 100.00% <ø> (ø)
iceoryx_posh/source/popo/listener.cpp 87.80% <50.00%> (+2.09%) ⬆️
iceoryx_posh/source/popo/trigger.cpp 92.45% <66.66%> (ø)
...eoryx_posh/internal/popo/notification_attorney.inl 100.00% <100.00%> (ø)
...sh/include/iceoryx_posh/internal/popo/wait_set.inl 91.17% <100.00%> (ø)
iceoryx_posh/source/popo/trigger_handle.cpp 89.65% <100.00%> (ø)
...nternal/roudi/introspection/port_introspection.inl 82.11% <0.00%> (-0.73%) ⬇️

Copy link
Contributor

@elfenpiff elfenpiff left a comment

Choose a reason for hiding this comment

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

Looks good, as soon as the CI is green I would approve it

@mossmaurice mossmaurice force-pushed the iox-#831-replace-methodcallback-with-cxx-function branch 4 times, most recently from 29711ba to 1568ee9 Compare June 28, 2022 20:39
@mossmaurice
Copy link
Contributor Author

@elBoberido LSAN issue was fixed by adding the flag intercept_tls_get_addr=0. AFAIU a new dynamic thread local storage test was added to LeakSan, which causes the error with certain glibc versions under certain conditions. The fix was adopted by many projects e.g. Chromium, neovim and others (see google/sanitizers#1322).

@mossmaurice mossmaurice force-pushed the iox-#831-replace-methodcallback-with-cxx-function branch from 1568ee9 to 31e86f1 Compare June 28, 2022 21:05
@mossmaurice mossmaurice force-pushed the iox-#831-replace-methodcallback-with-cxx-function branch from 31e86f1 to c0e5919 Compare June 29, 2022 08:26
@mossmaurice mossmaurice force-pushed the iox-#831-replace-methodcallback-with-cxx-function branch from c0e5919 to f2586e0 Compare June 29, 2022 08:27
@mossmaurice mossmaurice merged commit 751723d into eclipse-iceoryx:master Jun 29, 2022
@mossmaurice mossmaurice deleted the iox-#831-replace-methodcallback-with-cxx-function branch June 29, 2022 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactor code without adding features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use cxx::function were it is appropriate
4 participants