This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Is there any order requirement? And is there a specific rationale for it other than the aforementioned "principle of least astonishment"?
Though, I still wonder how is that implementable.
Because a TU could have say 3 thread_local vars with ctors/dtors, and the middle one of them could call in the constructor some function that accesses thread_local with ctors/dtors of some other TU, then you have just partially initialized the current TU and need to initialize another TU
(and it is unclear in what order they need to be destructed).
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |