Robotics StackExchange | Archived questions

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.

Asked by huchaohong on 2019-03-14 21:08:48 UTC

Comments

Answers