[boost] Re: thread lib: thread specific storage problem

2003-06-03 Thread Chuck Messenger
William E. Kempf wrote: Chuck Messenger said: I've been experimenting with the thread lib. I found a bug related in some way to thread_specific_storage (tss). In particular, I #ifdef'd all the tss stuff out, using native pthread calls instead, and everything worked as expected. So, I went back

[boost] Re: thread lib: thread specific storage problem

2003-06-03 Thread Chuck Messenger
Chuck Messenger wrote: And so, can I assume that the following is guaranteed to work? static SomeType var1; static AnotherType var2 = var1.something(); That is, is var1 guaranteed to be constructed before I initialize var2 from it? Referring to TC++PL 3rd ed, I see that, indeed, statics

Re: [boost] Re: thread lib: thread specific storage problem

2003-06-03 Thread William E. Kempf
Chuck Messenger said: William E. Kempf wrote: I don't follow what you're code is supposed to be doing. Background: I have a structure of information, 'mythread', of which I need one per thread. That is, I've grouped all my tss variables into a single structure. I need to bootstrap the