Publish topic: is it thread safe?
I always have a doubt about thread safe regarding topic publish in multiple threads. Is it safe to publish topic in thread different from the spin thread. Moreover, is it safe to publish to the same topic in more than one thread ?
This question is about both ros1 and ros2.