Hi,
I have a C++ program where I have multiple threads that could possibly call the same static member function of a different class at the same time. My class has no static member variables--the static method uses only the parameters passed in. Is it necessary to threadsafe this code with critical sections or mutexes to prevent different threads from clobbering each other or is the static method inherently threadsafed?
Thanks for any advice.
Kevin
I have a C++ program where I have multiple threads that could possibly call the same static member function of a different class at the same time. My class has no static member variables--the static method uses only the parameters passed in. Is it necessary to threadsafe this code with critical sections or mutexes to prevent different threads from clobbering each other or is the static method inherently threadsafed?
Thanks for any advice.
Kevin
