ros / dynamic_reconfigure

BSD 3-Clause "New" or "Revised" License
48 stars 111 forks source link

C++ client: race condition when calling setConfiguration and getCurrentConfiguration from callbacks #187

Closed rokusottervanger closed 2 years ago

rokusottervanger commented 2 years ago

I have an application where I want to call getCurrentConfiguration and setConfiguration from (different) callbacks. These may be called at arbitrary times, in arbitrary order. I'm running with a normal (single threaded) spinner.

The problem can be understood like this:

The thread may now be blocked, depending on whether the parameter_updates message is put first or second in the callback queue.