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

Added mutex to protect stored time variables #2345

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

sauk2
Copy link
Contributor

@sauk2 sauk2 commented Mar 28, 2024

🦟 Bug fix

Fixes #2289

Summary

Added a mutex to protect variables simTime and nextUpdateTime as they are used by both render and post update threads.

Checklist

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@sauk2 sauk2 requested a review from mjcarroll as a code owner March 28, 2024 08:09
@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Mar 28, 2024
@mjcarroll mjcarroll merged commit 760ba21 into gazebosim:gz-sim8 Mar 28, 2024
6 of 9 checks passed
@sauk2 sauk2 deleted the fix/dvl-thread-safety branch March 29, 2024 09:28
GauravKumar9920 pushed a commit to GauravKumar9920/gz-sim that referenced this pull request Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Thread safety in custom rendering sensor system (DopplerVelocityLogSystem.cc)
2 participants