You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the PublishPerformanceMetrics function is called within
SensorManager.cc by each SensorContainer with protection by the
mutex of each SensorContainer. This leads to a deadlock when a
world has sensors in more than one container (i.e. more than one
category of sensors) as described in gazebosim#2902.
Since the PublishPerformanceMetrics function is not a member
function of SensorContainer and uses only global variables,
the function can be called by only the SensorManager thread
instead of all the SensorContainer threads. It is also
left unprotected by a mutex, as it may not be needed.
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
0 commit comments