3 ms·
> I can't remember the case in C, but in C++ the initialisation of a function local static variable is guaranteed to be thread-safe. Only in C++11 onwards.
by yuushi 7y ago
> I can't remember the case in C, but in C++ the initialisation of a function local static variable is guaranteed to be thread-safe.
Only in C++11 onwards.