-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Threading optimizations in DDS #11580
Conversation
|
||
rsutils::time::stopwatch stopwatch; | ||
_on_data_available(); | ||
if( stopwatch.get_elapsed() > std::chrono::milliseconds( 500 ) ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why 500? Should be configurable, maybe FPS dependent.
Not for this PR but we should add a task to do it later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, can be whatever we deem is right, I picked half a second rather arbitrarily.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to the todo list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LibCI was hanging on some tests, mainly non-dds-related ones, because of timeouts. There were infinite waits somehow on the closing of resources.
This cleans up a lot and makes things much better.
This should fix libCI so I'll merge this first and then the other PRs...