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] |
On Wed, 10 Oct 2012 16:20:19 -0700 (PDT), Roland wrote:I really hope there will be a way to use this from C, e.g.
__thread type x; static void __attribute__((thread_destructor (x))) foo (type *x_ptr) { ... }
The destructor does take an object pointer. I could keep a static process-wide list of destructors instead of the current thread-local one and use locking to do this. It won't work if the destructor depends on some context within its current thread.
C++11x does not seem to say anything about thread_local behaviour when DSOs are involved.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |