Subj : Re: Boost.Threads on its way to C++0x To : comp.programming.threads From : Peter Dimov Date : Tue Apr 26 2005 05:03 pm gottlobfrege@gmail.com wrote: > - a static_local template: > > int func() > { > // this thread-safely inits foo only once > static static_local foo(foo_param1, foo_param2,...); How do you solve the race condition WRT the hidden compiler-generated boolean flag? .