I want to confirm my suspicion (I am working under RH 7.3):
I have a struct of type SomeType that has as a member a pointer to a function F (stateless function)
I can do the following:
// initialization code, etc
call to function F through ST1
call to function F through ST2
without worrying about ST1 and ST2 accessing the function. But what about if ST1 and ST2 were in different threads (LWP)?
Do I need to add protection to those calls?