Publish topic: is it thread safe?

asked 2019-03-14 21:08:48 -0600

huchaohong gravatar image

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.

edit retag flag offensive close merge delete