470,848 Members | 1,807 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

Initialization of thread local storage

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?

Jun 27 '08 #1
0 714

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Cheng Mo | last post: by
6 posts views Thread by iam1708 via DotNetMonster.com | last post: by
14 posts views Thread by seema | last post: by
18 posts views Thread by =?Utf-8?B?VGhlU2lsdmVySGFtbWVy?= | last post: by
10 posts views Thread by Juha Nieminen | last post: by
32 posts views Thread by mdh | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.