Can one generally assume thread-safety for get-methods if not otherwise noted in the documentation of a method? Or is it the other way round that one should never assume thread-safety if not otherwise noted? What do you think?
Edit:
Assume a class
class InfoClass {
public:
void Init();
int GetInfo();
void Free();
};
Calling Init()
once, GetInfo()
from a threaded context, and Free()
after the threaded operations have ended.