Hacker News new | ask | show | jobs
by yuushi 2385 days 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.