gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
621 stars 251 forks source link

Added mutex to protect stored time variables #2345

Closed sauk2 closed 3 months ago

sauk2 commented 3 months ago

🦟 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.