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

Adapt API style of lock_memory to match the one of the other functions #209

Merged

Conversation

firesurfer
Copy link
Contributor

This PR adapts the API style of the lock_memory function to match the style of the other methods.

I will create a PR that adapts the usage in ros2 control:
https://github.com/search?q=repo%3Aros-controls%2Fros2_control%20lock_memory&type=code

Which is also the only place it is currently used:
https://github.com/search?q=realtime_tools%3A%3Alock_memory&type=code

@saikishor
Copy link
Member

This is API breaking. I prefer to have a proper deprecation

@codecov-commenter
Copy link

codecov-commenter commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 72.55%. Comparing base (d976477) to head (bfb11f7).

Files with missing lines Patch % Lines
src/realtime_helpers.cpp 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #209      +/-   ##
==========================================
- Coverage   73.42%   72.55%   -0.88%     
==========================================
  Files           7        7              
  Lines         414      419       +5     
  Branches       68       68              
==========================================
  Hits          304      304              
- Misses         68       73       +5     
  Partials       42       42              
Flag Coverage Δ
unittests 72.55% <0.00%> (-0.88%) ⬇️

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

Files with missing lines Coverage Δ
src/realtime_helpers.cpp 35.22% <0.00%> (-2.13%) ⬇️

@firesurfer
Copy link
Contributor Author

@saikishor That's a very good point I missed out. I adapted the PR accordingly.

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

Thx for taking care of the deprecation.

@christophfroehlich christophfroehlich merged commit 069df6d into ros-controls:master Nov 28, 2024
24 checks passed
@saikishor
Copy link
Member

@Mergifyio backport humble

Copy link

mergify bot commented Dec 9, 2024

backport humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Dec 9, 2024
#209)

Co-authored-by: Lennart Nachtigall <[email protected]>
(cherry picked from commit 069df6d)
christophfroehlich pushed a commit that referenced this pull request Dec 10, 2024
…s (backport #209) (#229)

Adapt API style of lock_memory to match the one of the other functions (#209)

Co-authored-by: Lennart Nachtigall <[email protected]>
(cherry picked from commit 069df6d)

Co-authored-by: Lennart Nachtigall <[email protected]>
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.

4 participants