-
Notifications
You must be signed in to change notification settings - Fork 166
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
improved rcl_wait in the area of timeout computation and spurious wakeups #1135
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Janosch Machowinski <[email protected]>
Added special handling for timers with a clock that has time override enabled. For theses timer we should not compute a timeout, as the waitset is waken up by the associated guard condition. Before this change, the waitset could wait up, because of an expected ready timer, that was acutally not ready, as the time update to the ROS_TIME had not yet arrived. Signed-off-by: Janosch Machowinski <[email protected]>
Signed-off-by: Janosch Machowinski <[email protected]>
@sloretz You added the TODO, perhaps you want to have a look at this. |
@jmachowinski some linting as well as test failures on this one, can you take a look? |
jmachowinski
force-pushed
the
timer_improvements
branch
2 times, most recently
from
March 25, 2024 12:37
ab72207
to
6fac0d8
Compare
This commit changes the computation of the timer timeout, to be more precise, in the case, of many registered timers. Signed-off-by: Janosch Machowinski <[email protected]>
jmachowinski
force-pushed
the
timer_improvements
branch
from
March 25, 2024 13:01
6fac0d8
to
dd8ab57
Compare
@mjcarroll fixed |
mjcarroll
approved these changes
Mar 29, 2024
Note that this was reverted in #1142 (comment), and we'll be working on re-applying this change with a fix to avoid broken tests asap. |
Found the bug, and also some bugs in the test. I will push a PR tomorrow. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These patches fix unneeded wake ups in case timer override is active.
Also the improve the timeout computation in case of many registered timers.