Should I use a lock on resources in a listener node with multiple callbacks?
If I have a node which listens to multiple topics & has a callback for each topic, should I need locks/mutexes on the resources that are changed by more than one callback? My question stems from whether or not callback functions are executed in new threads--could code be concurrently executing in two different callback functions at once?