Question: are static functions thread safe?
Answer: Bingo! By definition anything using a static variable/function, etc is not thread safe. It is not just static function, no function or member function in C++ is intrinsically thread safe.