[PATCH] Destructor support for C++11 thread_local variables

Roland McGrath roland@hack.frob.com
Thu Oct 11 22:58:00 GMT 2012


> On 10/11/2012 03:17 PM, Roland McGrath wrote:
> >> One must construct all of the tls variables from a translation unit at
> >> the same time.
> > 
> > Is that a semantic requirement?  Is there a special technical reason for
> > it, or just "principle of least astonishment" for people who write
> > constructors with side effects?
> 
> Semantic requirement of c++11.

Is there any order requirement?  And is there a specific rationale for it
other than the aforementioned "principle of least astonishment"?



More information about the Libc-alpha mailing list