KStringHandler: stateless/reentrant/thread-safe?

Martin Sandsmark martin.sandsmark at kde.org
Fri Nov 9 01:36:37 GMT 2012


On Sunday 28. October 2012 09.22.39 Thiago Macieira wrote:
> That's a static const non-POD created by a non-constexpr. That means it's
> initialised on the first run.
> 
> It's thread-safe on GCC and C++11, but not on other conditions.

It should be safe according to the spec (section 6.7 I think), but I guess we 
can't rely on all compilers to follow the spec?

-- 
Martin Sandsmark
KDE




More information about the kde-core-devel mailing list