[rospy] made get_published_topics threadsafe#958
[rospy] made get_published_topics threadsafe#958dirk-thomas merged 2 commits intoros:kinetic-develfrom
Conversation
|
HI @ipa-jba thanks for the pull request, do you have a simple example to play around? |
|
on my machine this script crashes (without modifications) ten out of ten times: |
|
I can reproduce the problem as well as confirm that the patch makes this case pass. Since the proxy class claims that all methods are thread-safe ( ) it makes sense to lock for the actual call.To avoid the need for two separate locks the operation to get the function from |
|
I updated the code to implement your suggestions @dirk-thomas. One critical information for your review: I tested it on indigo and did an "untested" port to kinetic for this |
|
I tested it in Kinetic and CI also runs for Kinetic on this PR. I will wait with the merge until the new CI build passes. Thank you for the patch! |
* [rospy] made get_published_topics threadsafe
* [rospy] made get_published_topics threadsafe
With multiple threads trying to get the currently published topics at least one of them crashes with
the acquisition of
fis thread safe, but the final call tofseems not.