Using g ++ to declare spatially static local storage:
void f() { static __thread somePodStruct thing; ... }
Is it possible to assume that it thingwill receive zero initialization?
thing
According to the GCC documentation:
http://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/Thread-Local.html
In C ++, if an initializer is present for a local local variable, it must be a constant expression, as defined in 5.19.2 of the ANSI / ISO C ++ standard.
, ., , - , , .
Source: https://habr.com/ru/post/1752737/More articles:Allow annotations only on a list - javahow to force firefox cursor to be based on the line height, and not on the height of the text window - cssAndroid: pop-up window to restart the phone - androidThreading in XNA - multithreadingSpring + Maven: separate property files for unit tests and integration tests - javaReflection of a circle from another circle - geometryRadGrid vs GridView - c #network programming in .NET. - c #Point of sale integration Magento - magentoLockQueue and putAll - javaAll Articles