-
Notifications
You must be signed in to change notification settings - Fork 276
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
Thread safety in custom rendering sensor system (DopplerVelocityLogSystem.cc) #2289
Labels
bug
Something isn't working
Comments
azeey
changed the title
Thread safety in custom rednering sensor system (DopplerVelocityLogSystem.cc)
Thread safety in custom rendering sensor system (DopplerVelocityLogSystem.cc)
Jan 26, 2024
Thanks for catching those. There does seem to be a race condition on those variables. Would you be able to submit a PR? |
@azeey Could I work on this? |
Yes, please go ahead. I'll assign it to you. |
Would like to know your opinion on a possible implementation idea here:
|
This was referenced Mar 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Description
In DopplerVelocityLogSystem.cc there are time-related variables: nextUpdateTime, simTime. They appear to be used by both: the rendering thread (OnRedner, PostRender) and physics thread (DoPostUpdate). There seems to be no thread safety for these variables, compared to for instance pendingRequests which is atomic.
The text was updated successfully, but these errors were encountered: