An object of struct TLS should be thread-local:
struct Foo {};
struct TLS {
Foo* a;
bool b;
};
__declspec(thread) TLS MyTLS;
Can I assume that MyTLS.a and MyTLS.b are initialized to 0 resp. false?
Thanks,
Christian
Initialization of thread local storage
|