-
Notifications
You must be signed in to change notification settings - Fork 564
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
Conversation
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 ReportAttention: Patch coverage is
❗ 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. |
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)
(cherry picked from commit b91e529) Co-authored-by: Henning Kayser <[email protected]>
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.