[PATCH] D21803: [libcxxabi] Provide a fallback __cxa_thread_atexit() implementation
Dimitry Ivanov via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 30 09:12:43 PDT 2016
dimitry added inline comments.
================
Comment at: src/cxa_thread_atexit.cpp:46
@@ +45,3 @@
+ pthread_key_delete(key_);
+ }
+
----------------
bcraig wrote:
> dimitry wrote:
> > run_dtors() is called when/if libc++.so gets unloaded... but only for the thread calling dlclose()?
> Most of the dtor magic is on the pthread_key_create side. pthreads lets you register a per-thread destructor.
>
> This destructor is only run on process termination (I think).
I meant the call from ~DtorListHolder()
http://reviews.llvm.org/D21803
More information about the cfe-commits
mailing list