For example, I have a ROS node that has several callback and timers. Those callbacks and timers need to read or modify the same global variable. Should I use mutex or other locking mechanism to prevent weird competing conditions? In other words, will those callbacks and timers be processed parallelly or sequentially? And will rospy and roscpp behave the same in this kind of situation?
Thanks a lot.
Originally posted by mayuzumi on ROS Answers with karma: 21 on 2017-08-03
Post score: 2