Added additional flag to fix race condition in TransformListener#518
Added additional flag to fix race condition in TransformListener#518zygfrydw wants to merge 3 commits intoros2:galacticfrom
Conversation
72e5d8b to
933609a
Compare
39b3eaf to
5326e5a
Compare
|
If you like to include a unit test that checks the path on which this bug occurs, I have implemented an appropriate test here. I have excluded the change from this PR because it may be too intrusive for a public API of TransformListener. If you find it useful, I will include the changes in this PR. |
|
I found this PR when delving into both the respective issue and the essentially identical #73, but I belive this was fixed in #442 with an updated destructor: which seems to prevent steps 6 and 7
The current implementation currently works for me as there's no longer a spinning node, nor any "loose" threads. |
Fixed race condition in TransformListener which happens when TransformListener destructor is called before dedicated thread reaches
executor->spin()The issue is reported here
The alternative solution is to add thread-safe executor: