Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CallbackQueue removeByID blocks unless callback self-removes (ros#2283)
Making sure currently executing callback finishes before removing thread returns from removeByID allows to avoid race condition in a case when e.g. ros::Timer held in a class and capturing `this` is stopped just before destruction of the class and its data members: https://github.com/aurzenligl/study/blob/master/ros-timer/src/race.cpp
- Loading branch information