Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
onNewDataMessage() is called as a callback from Fast-RTPS when there is new data. When that happens, some locks inside of Fast-RTPS are taken, followed by internalMutex_ in SubListener. However, the rest of SubListener takes internalMutex_ first, followed by calls into Fast-RTPS where locks are taken. This is an ABBA deadlock. Break the deadlock by doing the calls into Fast-RTPS before taking the internalMutex_. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
- Loading branch information