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

Reduce mutex scope in Servo thread #3259

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

henningkayser
Copy link
Member

Fixes occasional main thread starvation caused by repeatedly creating a lock_guard in the servo loop. One side effect would be that the pause_servo service would not respond. Fairness is improved by removing the thread sleep rate from the lock scope.

Fixes occasional main thread starvation caused by repeatedly
creating a lock_guard in the servo loop. Fairness is improved
by removing the thread sleep rate from the lock scope.
@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

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

Project coverage is 45.65%. Comparing base (e11cabb) to head (59f5424).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
moveit_ros/moveit_servo/src/servo_node.cpp 0.00% 36 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3259      +/-   ##
==========================================
- Coverage   45.65%   45.65%   -0.00%     
==========================================
  Files         714      714              
  Lines       62299    62300       +1     
  Branches     7532     7531       -1     
==========================================
- Hits        28437    28436       -1     
- Misses      33694    33696       +2     
  Partials      168      168              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sea-bass sea-bass added the backport-jazzy Mergify label that triggers a PR backport to Jazzy label Jan 22, 2025
@AndyZe AndyZe added this pull request to the merge queue Jan 22, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 22, 2025
@JafarAbdi JafarAbdi added this pull request to the merge queue Jan 22, 2025
Merged via the queue into moveit:main with commit b91e529 Jan 22, 2025
9 checks passed
mergify bot pushed a commit that referenced this pull request Jan 22, 2025
Fixes occasional main thread starvation caused by repeatedly
creating a lock_guard in the servo loop. Fairness is improved
by removing the thread sleep rate from the lock scope.

(cherry picked from commit b91e529)
sea-bass pushed a commit that referenced this pull request Jan 22, 2025
(cherry picked from commit b91e529)

Co-authored-by: Henning Kayser <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-jazzy Mergify label that triggers a PR backport to Jazzy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants